Add ban for alcohol

This commit is contained in:
2016-10-15 02:33:38 +02:00
parent a0319887c8
commit 257cb9cfe7
5 changed files with 40 additions and 4 deletions

View File

@ -169,6 +169,13 @@ class User(AbstractBaseUser):
parent_address = models.CharField(_("parent address"), max_length=128, blank=True, default="")
is_subscriber_viewable = models.BooleanField(_("is subscriber viewable"), default=True)
godfathers = models.ManyToManyField('User', related_name='godchildren', blank=True)
is_banned_alcohol = models.BooleanField(
_('banned from buying alcohol'),
default=False,
help_text=_(
'Designates whether this user is denyed from buying alchool. '
),
)
objects = UserManager()