mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
Added a warning to the get_form hook docstring.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c323623361
commit
7aa851c05d
@ -308,6 +308,11 @@ class ModelAdmin(BaseModelAdmin):
|
||||
"""
|
||||
Returns a Form class for use in the admin add view. This is used by
|
||||
add_view and change_view.
|
||||
|
||||
Note that if you override this method, your form will *not*
|
||||
automatically get the custom admin widgets. raw_id_fields, fields,
|
||||
fieldsets, filter_vertical, and filter_horizonal will not apply to
|
||||
your form. You will have manually specify those widgets.
|
||||
"""
|
||||
if self.declared_fieldsets:
|
||||
fields = flatten_fieldsets(self.declared_fieldsets)
|
||||
|
Loading…
x
Reference in New Issue
Block a user