Use readable/translatable strings for db choices

This commit is contained in:
Mouse Reeve
2021-09-11 14:16:52 -07:00
parent 9d5bfc494f
commit 992e478e95
14 changed files with 970 additions and 250 deletions

View File

@ -134,7 +134,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
max_length=255,
)
deactivation_reason = models.CharField(
max_length=255, choices=DeactivationReason.choices, null=True, blank=True
max_length=255, choices=DeactivationReason, null=True, blank=True
)
deactivation_date = models.DateTimeField(null=True, blank=True)
confirmation_code = models.CharField(max_length=32, default=new_access_code)