django1/docs/ref
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
..
contrib Cleaned up and refactored `ModelAdmin.formfield_for_dbfield`: 2009-01-16 15:32:31 +00:00
files Fixed #8979 -- Made a bunch of typo/formatting fixes to the docs. Thanks, ramiro 2008-09-09 01:54:20 +00:00
forms Fixed #9902 -- Corrected misspelling in form validation documentation, thanks zunzun. 2008-12-23 04:13:14 +00:00
models Fixed #9997 -- Fixed use of ValuesQuerySets as rvalues in filters. 2009-01-16 10:59:43 +00:00
templates Fixed #9735 -- Documentation typo fix. 2008-12-03 05:50:46 +00:00
databases.txt Refs #9935: Added a note in the documentation to the effect that Django currently requires a 4.X release of cx_Oracle. 2009-01-06 18:22:07 +00:00
django-admin.txt Fixed #9777 -- Typo fix. 2008-12-09 07:15:35 +00:00
generic-views.txt Documented how to handle '%' characters in redirect_to() URL strings (even in 2008-12-09 07:33:08 +00:00
index.txt Fixed #8326: added signals documentation. 2008-08-26 19:04:52 +00:00
middleware.txt Correct bad target in middleware documentation 2008-09-04 09:50:45 +00:00
request-response.txt Fixed #9712 -- Documented how HTTP headers are converted to request.META keys. 2008-12-07 03:41:54 +00:00
settings.txt Fixed #9477 -- Removed and edited a bunch of references to "development 2008-11-15 05:51:25 +00:00
signals.txt Promoted --verbosity to be a top level option for all management commands. Also added -v as a consistent short form of --verbosity. This is mostly to save Malcolm's poor arthritic fingers. 2008-10-02 12:57:13 +00:00
unicode.txt Fixed #8753: converted "new in ..." callouts to proper Sphinx "versionadded/versionchanged" directives. Thanks to Marc Fargas for all the heavy lifting here. 2008-09-02 03:40:42 +00:00