• Jacob Kaplan-Moss's avatar
    Cleaned up and refactored `ModelAdmin.formfield_for_dbfield`: · f212b24b
    Jacob Kaplan-Moss yazdı
      * 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
    f212b24b
Adı
Son kayıt (commit)
Son güncelleme
..
_ext Loading commit data...
_static Loading commit data...
_templates Loading commit data...
faq Loading commit data...
howto Loading commit data...
internals Loading commit data...
intro Loading commit data...
man Loading commit data...
misc Loading commit data...
obsolete Loading commit data...
ref Loading commit data...
releases Loading commit data...
topics Loading commit data...
Makefile Loading commit data...
conf.py Loading commit data...
contents.txt Loading commit data...
glossary.txt Loading commit data...
index.txt Loading commit data...