[member] Added parent_club field to Club

This commit is contained in:
Benjamin Graillot 2020-03-23 09:07:39 +01:00
parent 05d8b3bc69
commit a4cb19e5b1
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,13 @@ class Club(models.Model):
email = models.EmailField( email = models.EmailField(
verbose_name=_('email'), verbose_name=_('email'),
) )
parent_club = models.ForeignKey(
'self',
null=True,
blank=True,
on_delete=models.PROTECT,
verbose_name=_('parent club'),
)
# Memberships # Memberships
membership_fee = models.PositiveIntegerField( membership_fee = models.PositiveIntegerField(