X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/01e3154575d718ae51e55e7ea8d064718e7d0037..945eac1969985192b4f628ec68ac3468643cb9cd:/src/team/models.py diff --git a/src/team/models.py b/src/team/models.py index 05372c46..6e53dd3c 100644 --- a/src/team/models.py +++ b/src/team/models.py @@ -6,6 +6,13 @@ from django.utils.timezone import now class Profile(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, models.CASCADE) presence = models.BooleanField() + approve_by_default = models.BooleanField() + + class Meta: + verbose_name = verbose_name_plural = 'profil' + + def __str__(self): + return self.user.username class Presence(models.Model):