Commit 4a56a93c authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Moved the new app cache inside core.

parent b3d5efe2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
from django.apps import app_cache
from django.core.apps import app_cache
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.db.models.fields import FieldDoesNotExist
+1 −1
Original line number Diff line number Diff line
@@ -4,10 +4,10 @@ import os
import re

from django import template
from django.apps import app_cache
from django.conf import settings
from django.contrib import admin
from django.contrib.admin.views.decorators import staff_member_required
from django.core.apps import app_cache
from django.db import models
from django.core.exceptions import ViewDoesNotExist
from django.http import Http404
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ def get_user_model():
    """
    Returns the User model that is active in this project.
    """
    from django.apps import app_cache
    from django.core.apps import app_cache

    try:
        app_label, model_name = settings.AUTH_USER_MODEL.split('.')
+1 −1
Original line number Diff line number Diff line
@@ -6,9 +6,9 @@ from __future__ import unicode_literals
import getpass
import unicodedata

from django.apps import app_cache, UnavailableApp
from django.contrib.auth import (models as auth_app, get_permission_codename,
    get_user_model)
from django.core.apps import app_cache, UnavailableApp
from django.core import exceptions
from django.core.management.base import CommandError
from django.db import DEFAULT_DB_ALIAS, router
+1 −1
Original line number Diff line number Diff line
from __future__ import unicode_literals
from datetime import date

from django.apps import app_cache
from django.contrib.auth import models, management
from django.contrib.auth.management import create_permissions
from django.contrib.auth.management.commands import changepassword
@@ -9,6 +8,7 @@ from django.contrib.auth.models import User
from django.contrib.auth.tests.custom_user import CustomUser
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.contrib.contenttypes.models import ContentType
from django.core.apps import app_cache
from django.core import exceptions
from django.core.management import call_command
from django.core.management.base import CommandError
Loading