mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-17 06:54:11 +02:00
Create a DraftDomain model for requested domains
This commit is contained in:
parent
93427ad072
commit
7a3e1bcb2c
15 changed files with 272 additions and 124 deletions
22
src/registrar/models/draft_domain.py
Normal file
22
src/registrar/models/draft_domain.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
import logging
|
||||
|
||||
from django.db import models
|
||||
|
||||
from .utility.domain_helper import DomainHelper
|
||||
from .utility.time_stamped_model import TimeStampedModel
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class DraftDomain(TimeStampedModel, DomainHelper):
|
||||
"""Store domain names which registrants have requested."""
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.name
|
||||
|
||||
name = models.CharField(
|
||||
max_length=253,
|
||||
blank=False,
|
||||
default=None, # prevent saving without a value
|
||||
help_text="Fully qualified domain name",
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue