style: explicitly return none

This commit is contained in:
2025-11-03 16:53:59 +01:00
parent dd3b1fde9d
commit e07e633651

View File

@@ -512,6 +512,7 @@ class AdoptionNotice(models.Model):
photos.extend(animal.photos.all())
if len(photos) > 0:
return photos
return None
def get_photo(self):
"""