Ticket #7703: patch.txt

File patch.txt, 560 bytes (added by sureshkannan, 7 years ago)

this is a one line (4 characters) change probably easier to just type it in

Line 
1Index: django/contrib/admin/options.py
2===================================================================
3--- django/contrib/admin/options.py     (revision 7875)
4+++ django/contrib/admin/options.py     (working copy)
5@@ -335,7 +335,7 @@
6         "Hook for specifying fieldsets for the add form."
7         if self.declared_fieldsets:
8             return self.declared_fieldsets
9-        form = self.get_form(request)
10+        form = self.get_form(request,obj)
11         return [(None, {'fields': form.base_fields.keys()})]
12 
13     def get_form(self, request, obj=None):
Back to Top