1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-21 16:39:12 +02:00

Base template and picture

This commit is contained in:
Ehouarn
2025-07-17 19:08:34 +02:00
parent 65dd42fc97
commit 249b797d5a
10 changed files with 279 additions and 36 deletions

View File

@ -28,6 +28,15 @@ class Family(models.Model):
verbose_name=_('rank'),
)
display_image = models.ImageField(
verbose_name=_('display image'),
max_length=255,
blank=False,
null=False,
upload_to='pic/',
default='pic/default.png'
)
class Meta:
verbose_name = _('Family')
verbose_name_plural = _('Families')