From f3ea0c4bbd5fa9bac73049839ce5de388d53371a Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 18 Oct 2016 17:47:29 -0700 Subject: 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. --- docs/topics/auth/customizing.txt | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'docs/topics') diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 09b564039b..69a0515780 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -1156,28 +1156,3 @@ Finally, specify the custom model as the default user model for your project using the :setting:`AUTH_USER_MODEL` setting in your ``settings.py``:: AUTH_USER_MODEL = 'customauth.MyUser' - -.. _using-auth-without-models: - -Using ``contrib.auth`` without the built-in models -================================================== - -The models shipped with ``contrib.auth`` may not be required. For example, if -you :ref:`customize the user model ` and don't use the -:class:`~django.contrib.auth.models.Permission` and -:class:`~django.contrib.auth.models.Group` models, then the ``auth`` tables -may be unused. To avoid creating these tables, modify the -:setting:`MIGRATION_MODULES` setting and disable the migrations for the -``auth`` app:: - - MIGRATION_MODULES = {'auth': None} - -To prevent creation of the default permissions, change ``'django.contrib.auth'`` -in :setting:`INSTALLED_APPS` to -:class:`django.contrib.auth.apps.BaseAuthConfig`:: - - INSTALLED_APPS = [ - ... - 'django.contrib.auth.apps.BaseAuthConfig', - ... - ] -- cgit v1.3