Fixed #478: Removed release date error in case of empty date

This commit is contained in:
Eliot Berriot 2018-08-19 17:52:04 +02:00
parent fe436d47a6
commit 71c70cee39
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class AlbumQuerySet(models.QuerySet):
class Album(APIModelMixin):
title = models.CharField(max_length=255)
artist = models.ForeignKey(Artist, related_name="albums", on_delete=models.CASCADE)
release_date = models.DateField(null=True)
release_date = models.DateField(null=True, blank=True)
release_group_id = models.UUIDField(null=True, blank=True)
cover = VersatileImageField(
upload_to="albums/covers/%Y/%m/%d", null=True, blank=True

View File

@ -0,0 +1 @@
Removed release date error in case of empty date (#478)