1
0
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:
Adrian Holovaty
2007-01-19 05:10:51 +00:00
parent 2ea6cdbd9d
commit 13da9d7d2f
2 changed files with 3 additions and 2 deletions

View File

@@ -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: