Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/admin/sites.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25519 -- Made the admin "View site" link point to ↵Dheerendra Rathor2015-10-221-1/+6
| | | | | | | sites running on a subpath. Used request.META['SCRIPT_NAME'] as the site_url if it hasn't been customized from the default value of '/'.
* Fixed #25374 -- Made ModelAdmin checks work on instances ↵Malcolm Box2015-09-111-3/+4
| | | | | | | instead of classes. This allows dynamically-generated attributes to be specified in checked ModelAdmin attributes without triggering errors.
* Fixed #24126 -- Deprecated current_app parameter to auth ↵lukasz.wojcik2015-07-211-4/+4
| | | | views.
* Fixed #25032 -- Removed double redirect in admin login.Jan Pazdziora2015-07-031-1/+1
|
* Fixed #24474 -- Allowed configuring the admin's empty ↵Loek van Gent2015-06-051-0/+10
| | | | change list value.
* Fixed #24553 -- Added the list of available applications ↵Riccardo Magliocchetti2015-05-111-4/+14
| | | | to AdminSite.each_context()
* Removed cases of six.iter* wrapped in a list()Curtis Maloney2015-04-181-3/+2
| | | | | There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
* Removed code duplication between AdminSite.index() and ↵Riccardo Magliocchetti2015-04-151-83/+70
| | | | app_index().
* Revert "Fixed #24474 -- Allowed configuring the admin's ↵Tim Graham2015-04-091-10/+0
| | | | | | | | empty change list value." This reverts commit 72f769f494822981db6df9524b92a2d86f8e69fe. There are several test failures that need to be fixed.
* Fixed #24474 -- Allowed configuring the admin's empty ↵Loek van Gent2015-04-091-0/+10
| | | | change list value.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-7/+8
|
* Caught all exceptions raised by Engine.get_default().Aymeric Augustin2015-02-051-2/+8
| | | | | | In addition to ImproperlyConfigured, Engine.get_default() may also raise ImportError or other exceptions. It's better to catch all exceptions in places where the default engine isn't strictly required.
* Fixed #24055 -- Keep reference to view class for resolve()Collin Anderson2015-01-171-0/+1
|
* Avoided exceptions in a non-critical check in the admin.Aymeric Augustin2015-01-121-7/+18
| | | | | | This change makes it possible to configure several Django template engines in a project and still use the admin. On the flip side the check is silently skipped when no Django template engine is configured.
* Fixed #22295 -- Replaced permission check for displaying ↵Thomas Tanner2014-12-311-7/+8
| | | | admin user-tools
* Deprecated TEMPLATE_CONTEXT_PROCESSORS.Aymeric Augustin2014-12-281-2/+2
|
* Deprecated current_app in TemplateResponse and ↵Aymeric Augustin2014-12-281-3/+7
| | | | render(_to_response).
* Fixed #23497 -- Made admin system checks run for custom ↵Mosson, Andrew2014-12-171-1/+3
| | | | AdminSites.
* Fixed #17890 -- Added an extra_context parameter to ↵Berker Peksag2014-11-291-2/+2
| | | | AdminSite.password_change().
* Removed direct references to template-related settings.Aymeric Augustin2014-11-231-1/+2
|
* Limited lines to 119 characters in django/Tim Graham2014-09-051-3/+9
| | | | refs #23395.
* Fixed #13749 -- Added link from admin site to front-end ↵areski2014-08-271-0/+4
| | | | | | site. Thanks romankrv for the suggestion.
* Fixed #21132 -- Removed the useless app_name argument to ↵Tim Graham2014-08-141-3/+2
| | | | | | AdminSite. Thanks MarkusH for the report and Florian for review.
* Fixed #13163 -- Added ability to show change links on ↵Nick Sandford2014-07-311-0/+6
| | | | | | inline objects in admin. Thanks DrMeers for the suggestion.
* Fixed #6327 -- Added has_module_permission method to ↵Maxime Turcotte2014-06-131-6/+5
| | | | | | BaseModelAdmin Thanks chrj for the suggestion.
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-031-11/+11
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Fixed #22329 -- Used label_tag() in some admin auth ↵Tim Graham2014-03-291-0/+2
| | | | | | templates. refs #17922.
* Prevented admin from importing auth.User.Aymeric Augustin2014-03-091-1/+3
| | | | | | | Since we don't enforce order between apps, root packages of contrib apps cannot import models from unrelated apps. Fix #22005, refs #21719.
* Removed two imports which are now unusedAlex Gaynor2014-02-051-1/+1
|
* Removed the this_is_the_login_form hackClaude Paroz2014-02-041-4/+0
| | | | | | Refs #21911. Now that we have a more traditional login form, we don't need any more a special field telling us we are dealing with the login form.
* Fixed #21911 -- Made admin views redirect to login when ↵Claude Paroz2014-02-041-1/+10
| | | | | | | | | | | needed Historically, the Django admin used to pass through the request from an unauthorized access to the login view directly. Now we are using a proper redirection, which is also preventing inadvertantly changing data when POSTing login data to an admin view when user is already authorized. Thanks Marc Tamlyn and Tim Graham for the reviews.
* Made staff_member_required redirect to loginClaude Paroz2014-02-041-1/+4
| | | | Refs #21911.
* Avoided importing models from django.contrib.admin.Aymeric Augustin2014-02-011-2/+8
| | | | Fixed #21923. Refs #21719.
* Fixed #21829 -- Added default AppConfigs.Aymeric Augustin2014-01-251-1/+1
| | | | | Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-1/+1
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Fixed #21712 -- Moved autodiscover() to AdminConfig.ready().Aymeric Augustin2014-01-181-2/+2
| | | | Thanks Marc Tamlyn for the initial version of the patch.
* Fixed #21718 -- Renamed has_app to is_installed.Aymeric Augustin2014-01-061-2/+2
|
* Stopped populating the app registry as a side effect.Aymeric Augustin2013-12-301-1/+0
| | | | | | | Since it triggers imports, it shouldn't be done lightly. This commit adds a public API for doing it explicitly, django.setup(), and does it automatically when using manage.py and wsgi.py.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-6/+6
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Used a more translator-friendly format in admin sites.pyClaude Paroz2013-12-231-1/+1
|
* Used application verbose names in the admin.Aymeric Augustin2013-12-221-4/+5
|
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Expurged INSTALLED_APPS from code and tests.Aymeric Augustin2013-12-221-9/+7
| | | | Except the app cache code and a few specific tests, of course.
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-1/+2
|
* Fixed E125 pep8 warningsChristopher Medrela2013-11-281-1/+1
|
* Fixed #21056 -- AdminSite.app_index no longer blindly ↵Keryn Knight2013-09-111-2/+13
| | | | accepts any app-labelish input.
* Fixed #21063 -- AdminSite app_index should be fail early ↵Keryn Knight2013-09-091-35/+36
| | | | if the user has no permissions.
* Fixed regression introduced by a962286, changed ugettext ↵Loic Bistuer2013-09-071-4/+4
| | | | to ugettext_lazy.
* Added AdminSite attributes for easily changing admin title.Adrian Holovaty2013-09-061-17/+38
| | | | | | | AdminSite now has overridable site_header, site_title and index_title attributes. Changed each admin view to pass these to the context (in a new AdminSite.each_context() method). The intent here is to make it easier to override these things in the common case, instead of having to override a template, which is a bigger burden.
* Fixed awkward indentation in admin URLconfsAdrian Holovaty2013-09-061-25/+9
|