mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Django 2.0 support in Admin
TypeError at /admin/categories/category/ __init__() missing 1 required positional argument: 'sortable_by'
This commit is contained in:
parent
58ec14f99b
commit
a84bb00210
1 changed files with 7 additions and 0 deletions
|
|
@ -148,6 +148,13 @@ class TreeEditor(admin.ModelAdmin):
|
|||
self.list_display_links, self.list_filter, self.date_hierarchy,
|
||||
self.search_fields, self.list_select_related,
|
||||
self.list_per_page, self.list_editable, self)
|
||||
elif django.VERSION[0] == 2:
|
||||
params = (
|
||||
request, self.model, list_display,
|
||||
self.list_display_links, self.list_filter, self.date_hierarchy,
|
||||
self.search_fields, self.list_select_related,
|
||||
self.list_per_page, self.list_max_show_all,
|
||||
self.list_editable, self.sortable_by, self)
|
||||
else:
|
||||
params = (
|
||||
request, self.model, list_display,
|
||||
|
|
|
|||
Loading…
Reference in a new issue