1
0
mirror of https://github.com/django/django.git synced 2025-01-12 03:15:47 +00:00
django/docs/ref/contrib
Jacob Kaplan-Moss f212b24b64 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
2009-01-16 15:32:31 +00:00
..
_images
comments Fixed #9346: fixed comment upgrade SQL in documentation. Thanks, mt. 2009-01-12 17:31:40 +00:00
formtools
admin.txt Cleaned up and refactored ModelAdmin.formfield_for_dbfield: 2009-01-16 15:32:31 +00:00
auth.txt
contenttypes.txt
csrf.txt
databrowse.txt
flatpages.txt
humanize.txt
index.txt
localflavor.txt
redirects.txt
sitemaps.txt
sites.txt
syndication.txt
webdesign.txt