|
|
@@ -1,6 +1,4 @@
|
|
1
|
1
|
from django.contrib import admin
|
|
2
|
|
-from treebeard.admin import TreeAdmin
|
|
3
|
|
-from treebeard.forms import movenodeform_factory
|
|
4
|
2
|
|
|
5
|
3
|
from oscar.core.loading import get_model
|
|
6
|
4
|
|
|
|
@@ -84,8 +82,8 @@ class AttributeOptionGroupAdmin(admin.ModelAdmin):
|
|
84
|
82
|
inlines = [AttributeOptionInline, ]
|
|
85
|
83
|
|
|
86
|
84
|
|
|
87
|
|
-class CategoryAdmin(TreeAdmin):
|
|
88
|
|
- form = movenodeform_factory(Category)
|
|
|
85
|
+class CategoryAdmin(admin.ModelAdmin):
|
|
|
86
|
+ list_display = ('name', 'slug')
|
|
89
|
87
|
|
|
90
|
88
|
|
|
91
|
89
|
admin.site.register(ProductClass, ProductClassAdmin)
|