1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-29 12:50:55 +02:00

Ajout d'un champ club au modèle Bus pour faciliter la gestion des bus

This commit is contained in:
Ehouarn
2025-05-29 20:16:43 +02:00
parent 02453e07ba
commit 70a57bf02d
4 changed files with 350 additions and 3 deletions

View File

@ -72,6 +72,15 @@ class Bus(models.Model):
default=50,
)
club = models.OneToOneField(
Club,
null=True,
blank=True,
on_delete=models.SET_NULL,
related_name="bus",
verbose_name=_("club"),
)
description = models.TextField(
blank=True,
default="",