Skip to content

Commit

Permalink
Fixing bug #6 per primski. Adds the correct fields into the admin ins…
Browse files Browse the repository at this point in the history
…tead of both.
  • Loading branch information
Corey Oordt committed Dec 10, 2010
1 parent 11768c2 commit e1b53ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion categories/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ class Media:
admin.site.unregister(model)
admin.site.register(model, type('newadmin', (modeladmin.__class__,), {
'fieldsets': getattr(modeladmin, 'fieldsets', ()) + (('Categories',{
'fields': ('category','categories'),
'fields': [cat.split('.')[1] for cat in registry]
}),)
}))

0 comments on commit e1b53ae

Please sign in to comment.