0
0
mirror of https://github.com/django/django.git synced 2024-12-01 07:31:48 +01:00
django/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
forms
models Fixed #9997 -- Fixed use of ValuesQuerySets as rvalues in filters. 2009-01-16 10:59:43 +00:00
templates
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
generic-views.txt
index.txt
middleware.txt
request-response.txt
settings.txt
signals.txt
unicode.txt