mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-24 01:50:25 +00:00
Update permission.py
This commit is contained in:
parent
54f710055a
commit
cb91aabcf4
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ import re
|
|||
|
||||
from django.contrib.auth import models as auth_models
|
||||
from django.contrib.contenttypes import models as contenttypes_models
|
||||
from django.db.models import get_models
|
||||
from django.apps import apps
|
||||
from django.utils import six
|
||||
|
||||
from . import utils
|
||||
|
|
@ -381,7 +381,7 @@ def create_view_permissions(app, created_models, verbosity, **kwargs):
|
|||
"""
|
||||
# Is there any reason for doing this import here?
|
||||
|
||||
app_models = get_models(app)
|
||||
app_models = apps.get_models(app)
|
||||
|
||||
# This will hold the permissions we're looking for as
|
||||
# (content_type, (codename, name))
|
||||
|
|
|
|||
Loading…
Reference in a new issue