use get_user_model

This commit is contained in:
j 2018-07-29 21:12:56 +01:00
commit 6296be870b
20 changed files with 71 additions and 23 deletions

View file

@ -8,7 +8,8 @@ from glob import glob
from django.db import models
from django.db.models import Max
from django.contrib.auth.models import User, Group
from django.contrib.auth.models import Group
from django.contrib.auth import get_user_model
from django.conf import settings
from django.utils.encoding import python_2_unicode_compatible
from oxdjango.fields import JSONField
@ -20,6 +21,7 @@ from user.utils import update_groups
from . import managers
User = get_user_model()
def get_path(f, x): return f.path(x)
def get_icon_path(f, x): return get_path(f, 'icon.jpg')