mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Fixing bug #6 per primski. Adds the correct fields into the admin instead of both.
This commit is contained in:
parent
11768c2987
commit
e1b53aefcb
1 changed files with 1 additions and 1 deletions
|
|
@ -106,6 +106,6 @@ for model,modeladmin in admin.site._registry.items():
|
|||
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]
|
||||
}),)
|
||||
}))
|
||||
Loading…
Reference in a new issue