Permalink
Browse files

Fix admin tabs support for Django 1.4

  • Loading branch information...
1 parent f2bea94 commit 61b61c7750d0809c2e3ce008dfa9ab2da70e2a86 @yumike yumike committed Apr 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lemon/extradmin/options.py
@@ -156,10 +156,10 @@ def render_change_form(self, request, context, add=False, change=False,
if tabs:
formsets = {}
for formset in context.get('inline_admin_formsets'):
- formsets[formset.opts] = formset
+ formsets[formset.opts.__class__] = formset
new_tabs = []
for tab in tabs:
- contents = [formsets[inline] for inline in tab['contents']]
+ contents = [formsets[inline.__class__] for inline in tab['contents']]
new_tabs.append({'title': tab['title'], 'contents': contents})
tabulated_formsets.extend(contents)
contents = [formset for formset in inline_admin_formsets

0 comments on commit 61b61c7

Please sign in to comment.