diff --git a/RIGS/migrations/0045_alter_profile_is_approved.py b/RIGS/migrations/0045_alter_profile_is_approved.py new file mode 100644 index 00000000..1ef2ae1e --- /dev/null +++ b/RIGS/migrations/0045_alter_profile_is_approved.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2022-10-20 23:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('RIGS', '0044_profile_is_supervisor'), + ] + + operations = [ + migrations.AlterField( + model_name='profile', + name='is_approved', + field=models.BooleanField(default=False, help_text='Designates whether a staff member has approved this user.', verbose_name='Approval Status'), + ), + ] diff --git a/RIGS/models.py b/RIGS/models.py index afb7c520..30fdecd8 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -36,7 +36,7 @@ class Profile(AbstractUser): initials = models.CharField(max_length=5, null=True, blank=False) phone = models.CharField(max_length=13, blank=True, default='') api_key = models.CharField(max_length=40, blank=True, editable=False, default='') - is_approved = models.BooleanField(default=False) + is_approved = models.BooleanField(default=False, verbose_name="Approval Status", help_text="Designates whether a staff member has approved this user.") # Currently only populated by the admin approval email. TODO: Populate it each time we send any email, might need that... last_emailed = models.DateTimeField(blank=True, null=True) dark_theme = models.BooleanField(default=False) diff --git a/templates/form_errors.html b/templates/form_errors.html index 5c945501..a8680703 100644 --- a/templates/form_errors.html +++ b/templates/form_errors.html @@ -1,13 +1,12 @@ {% load nice_errors from filters %} {% if form.errors %} -
Please note: If it has been more than a year since you last logged in, your account will have been automatically deactivated. Contact it@nottinghamtec.co.uk for assistance.
+