See #170: store and compute modification date on artists

This commit is contained in:
Eliot Berriot 2020-03-19 14:41:15 +01:00
parent b5297150f0
commit 1654044a9f
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
12 changed files with 85 additions and 7 deletions

View file

@ -251,7 +251,7 @@ class Artist(APIModelMixin):
choices=ARTIST_CONTENT_CATEGORY_CHOICES,
null=True,
)
modification_date = models.DateTimeField(default=timezone.now, db_index=True)
api = musicbrainz.api.artists
objects = ArtistQuerySet.as_manager()