X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/01e3154575d718ae51e55e7ea8d064718e7d0037..ff58bad61fad779f3eeedccd01de4e7c07d94f1c:/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):