Make the user model extendable
This commit is contained in:
parent
233b13d670
commit
20e41b3523
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ class User(Document):
|
|||
verbose_name=_('date joined'))
|
||||
|
||||
meta = {
|
||||
'allow_inheritance': True,
|
||||
'indexes': [
|
||||
{'fields': ['username'], 'unique': True}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue