11 lines
335 B
Python
11 lines
335 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
|