Build-in translations to privacy choices dropdwon

This commit is contained in:
Mouse Reeve
2022-01-12 15:25:49 -08:00
parent de0c50196e
commit 8b2335c52c
5 changed files with 69 additions and 15 deletions

View File

@ -40,9 +40,7 @@ class ImportJob(models.Model):
mappings = models.JSONField()
complete = models.BooleanField(default=False)
source = models.CharField(max_length=100)
privacy = models.CharField(
max_length=255, default="public", choices=PrivacyLevels.choices
)
privacy = models.CharField(max_length=255, default="public", choices=PrivacyLevels)
retry = models.BooleanField(default=False)
@property