summaryrefslogtreecommitdiff
path: root/django/contrib/auth/apps.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-10-18 17:47:29 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2016-10-25 17:32:59 -0700
commitf3ea0c4bbd5fa9bac73049839ce5de388d53371a (patch)
tree8a1512285c6965622652f973f719a8a2ca20d8b6 /django/contrib/auth/apps.py
parentb3bd3aa07c026239dd39d1a37498dfd0a2f09caf (diff)
Reverted "Fixed #26401 -- Added BaseAuthConfig to use auth without migrations."
This reverts commit 1ec1633cb294d8ce2a65ece6b56c258483596fba as it doesn't handle ContentType's auth.Permission dependency. Thus, it doesn't allow auth without migrations.
Diffstat (limited to 'django/contrib/auth/apps.py')
-rw-r--r--django/contrib/auth/apps.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/django/contrib/auth/apps.py b/django/contrib/auth/apps.py
index 9d128db39c..d5590158cf 100644
--- a/django/contrib/auth/apps.py
+++ b/django/contrib/auth/apps.py
@@ -7,26 +7,14 @@ from .checks import check_models_permissions, check_user_model
from .management import create_permissions
-class BaseAuthConfig(AppConfig):
- """
- AppConfig which assumes that the auth models don't exist.
- """
+class AuthConfig(AppConfig):
name = 'django.contrib.auth'
verbose_name = _("Authentication and Authorization")
def ready(self):
- checks.register(check_user_model, checks.Tags.models)
-
-
-class AuthConfig(BaseAuthConfig):
- """
- The default AppConfig for auth.
- """
-
- def ready(self):
- super(AuthConfig, self).ready()
post_migrate.connect(
create_permissions,
dispatch_uid="django.contrib.auth.management.create_permissions"
)
+ checks.register(check_user_model, checks.Tags.models)
checks.register(check_models_permissions, checks.Tags.models)