Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added a warning to the get_form hook docstring.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent c323623 commit 7aa851c05d80ef75581975939ff5c48b87bcae08 @jkocherhans jkocherhans committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 django/contrib/admin/
5 django/contrib/admin/
@@ -308,6 +308,11 @@ def get_form(self, request, obj=None):
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)

0 comments on commit 7aa851c

Please sign in to comment.
Something went wrong with that request. Please try again.