diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2008-03-18 00:50:15 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2008-03-18 00:50:15 +0000 |
| commit | 7aa851c05d80ef75581975939ff5c48b87bcae08 (patch) | |
| tree | 360457ee9d89659c97132604d63f3b52d665bdc7 | |
| parent | c323623361ba7c62c78413e43e1c8e745863013a (diff) | |
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
| -rw-r--r-- | django/contrib/admin/options.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 1db5ac548e..ccb31a7d4d 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -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) |
