Skip to content
Snippets Groups Projects
Commit 3f9bf9af authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '478-blank-release-date' into 'develop'

Resolve "Investigate "ValidationError {'release_date': ['This field cannot be blank.']}" during import"

Closes #478

See merge request funkwhale/funkwhale!380
parents fe436d47 71c70cee
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
Removed release date error in case of empty date (#478)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment