X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/01e3154575d718ae51e55e7ea8d064718e7d0037..426f7aee276f1eba4d4f118edec96d0731c55eb9:/src/team/models.py?ds=sidebyside 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):