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

@ -19,7 +19,7 @@ class Connector(BookWyrmModel):
api_key = models.CharField(max_length=255, null=True, blank=True)
active = models.BooleanField(default=True)
deactivation_reason = models.CharField(
max_length=255, choices=DeactivationReason.choices, null=True, blank=True
max_length=255, choices=DeactivationReason, null=True, blank=True
)
base_url = models.CharField(max_length=255)