Prepare weekly reports
This commit is contained in:
parent
24ac3ce45f
commit
33806967c8
9 changed files with 254 additions and 199 deletions
|
|
@ -11,6 +11,7 @@ from django.db import models
|
|||
from django.db.models import Q
|
||||
from django.template import loader
|
||||
from django.urls import reverse, reverse_lazy
|
||||
from django.utils import timezone
|
||||
from django.utils.encoding import force_bytes
|
||||
from django.utils.http import urlsafe_base64_encode
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
|
@ -92,6 +93,16 @@ class Profile(models.Model):
|
|||
default=False,
|
||||
)
|
||||
|
||||
report_frequency = models.PositiveSmallIntegerField(
|
||||
verbose_name=_("report frequency (in days)"),
|
||||
default=0,
|
||||
)
|
||||
|
||||
last_report = models.DateField(
|
||||
verbose_name=_("last report date"),
|
||||
default=timezone.now,
|
||||
)
|
||||
|
||||
email_confirmed = models.BooleanField(
|
||||
verbose_name=_("email confirmed"),
|
||||
default=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue