mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
newforms-admin: Changed ModelAdmin.get_field_sets() so that it doesn't take an opts argument
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -112,8 +112,9 @@ class ModelAdmin(object):
|
||||
else:
|
||||
return self.change_view(request, unquote(url))
|
||||
|
||||
def get_field_sets(self, opts):
|
||||
def get_field_sets(self):
|
||||
"Returns a list of AdminFieldSet objects."
|
||||
opts = self.opts
|
||||
if self.fields is None:
|
||||
field_struct = ((None, {'fields': [f.name for f in opts.fields + opts.many_to_many if f.editable and not isinstance(f, models.AutoField)]}),)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user