Skip to content

Commit

Permalink
django.apps is here
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed May 4, 2017
1 parent 0c33452 commit f083952
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions towel/mt/__init__.py
Expand Up @@ -43,15 +43,15 @@


def client_model():
from django.apps import apps
from django.conf import settings
from django.db.models import loading
return loading.get_model(*settings.TOWEL_MT_CLIENT_MODEL.split('.'))
return apps.get_model(*settings.TOWEL_MT_CLIENT_MODEL.split('.'))


def access_model():
from django.apps import apps
from django.conf import settings
from django.db.models import loading
return loading.get_model(*settings.TOWEL_MT_ACCESS_MODEL.split('.'))
return apps.get_model(*settings.TOWEL_MT_ACCESS_MODEL.split('.'))


class AccessDecorator(object):
Expand Down

0 comments on commit f083952

Please sign in to comment.