Skip to content

Commit

Permalink
Fix for TOXENV=py27-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gagandeep committed Nov 27, 2018
1 parent 579aa2a commit 6aacff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions categories/editor/tree_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def old_changelist_view(self, request, extra_context=None):
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] == 1 or ( django.VERSION[0] == 2 and django.VERSION[1] < 1):
elif django.VERSION[0] == 1 or (django.VERSION[0] == 2 and django.VERSION[1] < 1):
params = (
request, self.model, list_display,
self.list_display_links, self.list_filter, self.date_hierarchy,
Expand Down Expand Up @@ -250,7 +250,7 @@ def old_changelist_view(self, request, extra_context=None):
}
if django.VERSION[0] == 1 and django.VERSION[1] < 4:
context['root_path'] = self.admin_site.root_path
elif django.VERSION[0] == 1 or ( django.VERSION[0] == 2 and django.VERSION[1] < 1):
elif django.VERSION[0] == 1 or (django.VERSION[0] == 2 and django.VERSION[1] < 1):
selection_note_all = ungettext('%(total_count)s selected', 'All %(total_count)s selected', cl.result_count)

context.update({
Expand Down
1 change: 0 additions & 1 deletion example/simpletext/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class Meta:
def __unicode__(self):
return self.name


def get_absolute_url(self):
try:
from django.db.models import permalink
Expand Down

0 comments on commit 6aacff3

Please sign in to comment.