Django MusicBrainz Connector
  • Area Type
  • Area
  • Artist Credit
  • Artist Credit Name
  • Artist Type
  • Artist
  • Gender
  • Language
  • Link
  • Link Attribute
    • LinkAttribute
  • Link Attribute Text Value
  • Link Attribute Type
  • Link Text Attribute Type
  • Link Type
  • Medium Format
  • Recording
  • RecordingWorkLink
  • ReleaseGroupPrimaryType
  • ReleasePackaging
  • ReleaseStatus
  • Script
  • Tag
  • Track
  • Work
  • Work Type
  • Base tag model
  • Changelog
Django MusicBrainz Connector
  • Link Attribute
  • View page source

Link Attribute

class django_musicbrainz_connector.models.LinkAttribute(*args, **kwargs)[source]

PostgreSQL Definition

The link_attribute table is defined in the MusicBrainz Server as:

CREATE TABLE link_attribute ( -- replicate
    link                INTEGER NOT NULL, -- PK, references link.id
    attribute_type      INTEGER NOT NULL, -- PK, references link_attribute_type.id
    created             TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);
param link:

References Link. This is both a Foreign Key to the Link model, as well as a Primary Key for LinkAttribute. In Django, this is best implemented as a OneToOneField.

param attribute_type:

References LinkAttributeType.

Previous Next

© Copyright 2025, Marios Zindilis.

Built with Sphinx using a theme provided by Read the Docs.