Make user email addresses unique
This commit is contained in:
parent
b331978964
commit
8433d8bf41
2 changed files with 19 additions and 0 deletions
|
@ -18,6 +18,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
|||
''' a user who wants to read books '''
|
||||
private_key = models.TextField(blank=True, null=True)
|
||||
public_key = models.TextField(blank=True, null=True)
|
||||
email = models.EmailField(unique=True)
|
||||
inbox = models.CharField(max_length=255, unique=True)
|
||||
shared_inbox = models.CharField(max_length=255, blank=True, null=True)
|
||||
federated_server = models.ForeignKey(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue