Passwords, TODO++
This commit is contained in:
1 parent
9bbfea8971
commit
26bce8af7f
6 files changed
+55
-6
No files matched your search
+2
-2
@@ -24,14 +24,14 @@ class Alias(BaseModel):
|
||||
|
||||
|
||||
class Domain(BaseModel):
|
||||
name = models.CharField(max_length=1000)
|
||||
name = models.CharField(max_length=1000, unique=True)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
class User(BaseModel):
|
||||
email = models.EmailField()
|
||||
email = models.EmailField(unique=True)
|
||||
password = models.CharField(max_length=109)
|
||||
domain = models.ForeignKey('dpdapi.Domain')
|
||||
|
||||
|
||||
Reference in new issue
Block a user