toolshed/backend/hostadmin/models.py
jedi 5faec68ebf
All checks were successful
continuous-integration/drone/push Build is passing
add ImportedIdentifierSets
2023-10-22 22:51:56 +02:00

15 lines
495 B
Python

from django.db import models
class Domain(models.Model):
name = models.CharField(max_length=255, unique=True)
owner = models.ForeignKey('authentication.ToolshedUser', on_delete=models.CASCADE, related_name='domains')
open_registration = models.BooleanField(default=False)
def __str__(self):
return self.name
class ImportedIdentifierSets(models.Model):
name = models.CharField(max_length=255, unique=True)
created_at = models.DateTimeField(auto_now_add=True)