mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
linted
This commit is contained in:
parent
d4927d6cf0
commit
2d55a4a422
3 changed files with 1 additions and 4 deletions
|
@ -5,8 +5,6 @@ from registrar.models.utility.domain_helper import DomainHelper
|
||||||
from .domain_application import DomainApplication
|
from .domain_application import DomainApplication
|
||||||
from .utility.time_stamped_model import TimeStampedModel
|
from .utility.time_stamped_model import TimeStampedModel
|
||||||
|
|
||||||
from phonenumber_field.modelfields import PhoneNumberField # type: ignore
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
|
@ -10,6 +10,7 @@ from .utility.time_stamped_model import TimeStampedModel
|
||||||
|
|
||||||
from phonenumber_field.modelfields import PhoneNumberField # type: ignore
|
from phonenumber_field.modelfields import PhoneNumberField # type: ignore
|
||||||
|
|
||||||
|
|
||||||
def get_id():
|
def get_id():
|
||||||
"""Generate a 16 character registry ID with a low probability of collision."""
|
"""Generate a 16 character registry ID with a low probability of collision."""
|
||||||
day = datetime.today().strftime("%A")[:2]
|
day = datetime.today().strftime("%A")[:2]
|
||||||
|
|
|
@ -2,8 +2,6 @@ from django.db import models
|
||||||
|
|
||||||
from .utility.time_stamped_model import TimeStampedModel
|
from .utility.time_stamped_model import TimeStampedModel
|
||||||
|
|
||||||
from phonenumber_field.modelfields import PhoneNumberField # type: ignore
|
|
||||||
|
|
||||||
|
|
||||||
class UserDomainRole(TimeStampedModel):
|
class UserDomainRole(TimeStampedModel):
|
||||||
"""This is a linking table that connects a user with a role on a domain."""
|
"""This is a linking table that connects a user with a role on a domain."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue