This commit is contained in:
CocoByte 2023-10-02 23:43:22 -06:00
parent e8409a1c2c
commit 1633feb57b
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
4 changed files with 82 additions and 14 deletions

View file

@ -5,7 +5,7 @@ from .utility.time_stamped_model import TimeStampedModel
class StatusChoices(models.TextChoices):
READY = "ready", "Ready"
HOLD = "hold", "Hold"
ON_HOLD = "on hold", "On Hold"
class TransitionDomain(TimeStampedModel):
@ -13,6 +13,10 @@ class TransitionDomain(TimeStampedModel):
state of a domain upon transition between registry
providers"""
# This is necessary to expose the enum to external
# classes that import TransitionDomain
StatusChoices = StatusChoices
username = models.TextField(
null=False,
blank=False,