use get_user_model
This commit is contained in:
parent
13fcb20796
commit
6296be870b
20 changed files with 71 additions and 23 deletions
|
|
@ -3,7 +3,7 @@ from __future__ import division, print_function, absolute_import
|
|||
|
||||
from datetime import datetime
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from oxdjango.fields import JSONField
|
||||
|
|
@ -14,6 +14,8 @@ import websocket
|
|||
|
||||
from . import managers
|
||||
|
||||
User = get_user_model()
|
||||
|
||||
'''
|
||||
FIXME: remove this table more migrate to new ChangeLog
|
||||
'''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue