summaryrefslogtreecommitdiff
path: root/tests/urls.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-01-16 15:32:31 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-01-16 15:32:31 +0000
commitf212b24b6469b66424354bf970f3051df180b88d (patch)
tree379b8102f38ddde424cb0005cf2f468d409f691e /tests/urls.py
parentd579e716fef9f06f04861815cf949630d8633271 (diff)
downloaddjango-f212b24b6469b66424354bf970f3051df180b88d.tar.gz
Cleaned up and refactored `ModelAdmin.formfield_for_dbfield`:
* The new method uses an admin configuration option (`formfield_overrides`); this makes custom admin widgets especially easy. * Refactored what was left of `formfield_for_dbfield` into a handful of smaller methods so that it's easier to hook in and return custom fields where needed. * These `formfield_for_*` methods now pass around `request` so that you can easily modify fields based on request (as in #3987). Fixes #8306, #3987, #9148. Thanks to James Bennet for the original patch; Alex Gaynor and Brian Rosner also contributed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/urls.py')
-rw-r--r--tests/urls.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/urls.py b/tests/urls.py
index b6c9d6e030..43806de920 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -24,6 +24,9 @@ urlpatterns = patterns('',
# admin view tests
(r'^test_admin/', include('regressiontests.admin_views.urls')),
(r'^generic_inline_admin/', include('regressiontests.generic_inline_admin.urls')),
+
+ # admin widget tests
+ (r'widget_admin/', include('regressiontests.admin_widgets.urls')),
(r'^utils/', include('regressiontests.utils.urls')),