Skip to content

Commit

Permalink
This fixes #31
Browse files Browse the repository at this point in the history
* Uses the incorrect version segment. Although it works in 1.4a1, it is not perfect.
  • Loading branch information
coordt committed Feb 15, 2012
1 parent 3b0cf8d commit 7428f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion categories/editor/tree_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def changelist_view(self, request, extra_context=None, *args, **kwargs):
extra_context = extra_context or {}
extra_context['EDITOR_MEDIA_PATH'] = settings.MEDIA_PATH
extra_context['EDITOR_TREE_INITIAL_STATE'] = settings.TREE_INITIAL_STATE
if django.VERSION[2] >= 2:
if django.VERSION[1] >= 2:
return super(TreeEditor, self).changelist_view(
request, extra_context, *args, **kwargs)
else:
Expand Down

0 comments on commit 7428f87

Please sign in to comment.