mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 11:39:16 +02:00
See #432: added model tagging logic on artists and albums
This commit is contained in:
parent
426f6f0d45
commit
c8135d38b1
5 changed files with 36 additions and 14 deletions
|
@ -201,6 +201,8 @@ class Artist(APIModelMixin):
|
|||
on_delete=models.SET_NULL,
|
||||
related_name="attributed_artists",
|
||||
)
|
||||
tagged_items = GenericRelation(tags_models.TaggedItem)
|
||||
|
||||
api = musicbrainz.api.artists
|
||||
objects = ArtistQuerySet.as_manager()
|
||||
|
||||
|
@ -279,6 +281,8 @@ class Album(APIModelMixin):
|
|||
on_delete=models.SET_NULL,
|
||||
related_name="attributed_albums",
|
||||
)
|
||||
tagged_items = GenericRelation(tags_models.TaggedItem)
|
||||
|
||||
api_includes = ["artist-credits", "recordings", "media", "release-groups"]
|
||||
api = musicbrainz.api.releases
|
||||
federation_namespace = "albums"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue