Passwords, TODO++

This commit is contained in:
nikolark committed 2015-01-07 03:11:35 +01:00
1 parent 9bbfea8971
commit 26bce8af7f
6 files changed
+55 -6

No files matched your search

+2 -2
View File
@@ -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')