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

@ -13,7 +13,9 @@ import ox
from django.conf import settings
from django.db import models, transaction
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.utils.encoding import python_2_unicode_compatible
from oxdjango.fields import JSONField
@ -27,6 +29,9 @@ 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')