mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Removed the __init__ method for the treechange list. Don't need it and it varies too much by django version. Version bump to 1.0final
This commit is contained in:
parent
3965ee2fa9
commit
5487447260
2 changed files with 2 additions and 15 deletions
|
|
@ -2,8 +2,8 @@ __version_info__ = {
|
|||
'major': 1,
|
||||
'minor': 0,
|
||||
'micro': 0,
|
||||
'releaselevel': 'beta',
|
||||
'serial': 2
|
||||
'releaselevel': 'final',
|
||||
'serial': 1
|
||||
}
|
||||
|
||||
def get_version(short=False):
|
||||
|
|
|
|||
|
|
@ -66,19 +66,6 @@ class TreeEditorQuerySet(QuerySet):
|
|||
return self.model._default_manager.get(*args, **kwargs)
|
||||
|
||||
class TreeChangeList(ChangeList):
|
||||
def __init__(self, request, model, list_display, list_display_links,
|
||||
list_filter, date_hierarchy, search_fields, list_select_related,
|
||||
list_per_page, list_max_show_all, list_editable, model_admin):
|
||||
if django.VERSION[1] < 4:
|
||||
super(TreeChangeList, self).__init__(request, model, list_display,
|
||||
list_display_links, list_filter, date_hierarchy, search_fields,
|
||||
list_select_related, list_per_page, list_editable, model_admin)
|
||||
else:
|
||||
super(TreeChangeList, self).__init__(request, model, list_display,
|
||||
list_display_links, list_filter, date_hierarchy, search_fields,
|
||||
list_select_related, list_per_page, list_max_show_all,
|
||||
list_editable, model_admin)
|
||||
|
||||
def _get_default_ordering(self):
|
||||
if django.VERSION[1] < 4:
|
||||
return '', '' #('tree_id', 'lft')
|
||||
|
|
|
|||
Loading…
Reference in a new issue