Allow box_art to be null

This commit is contained in:
Joakim Hellsén 2026-01-05 21:49:11 +01:00
commit df6a77a1fd
No known key found for this signature in database
2 changed files with 23 additions and 1 deletions

View file

@ -77,9 +77,10 @@ class Game(models.Model):
default="",
verbose_name="Display name",
)
box_art = models.URLField(
box_art = models.URLField( # noqa: DJ001
max_length=500,
blank=True,
null=True, # We allow null here to distinguish between no box art and empty string
default="",
verbose_name="Box art URL",
)