Allow users to log in with email or username
This commit is contained in:
parent
f825709599
commit
11dd8c8f82
3 changed files with 31 additions and 1 deletions
|
@ -25,6 +25,7 @@ from . import fields, Review
|
|||
class User(OrderedCollectionPageMixin, AbstractUser):
|
||||
''' a user who wants to read books '''
|
||||
username = fields.UsernameField()
|
||||
email = models.EmailField(unique=True)
|
||||
|
||||
key_pair = fields.OneToOneField(
|
||||
'KeyPair',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue