mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Added version check for 1.7 to create context dict.
This commit is contained in:
parent
81f2faebc6
commit
d1911519ed
1 changed files with 5 additions and 1 deletions
|
|
@ -219,7 +219,11 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
|
|||
except AttributeError:
|
||||
verbose_name_plural = opts.verbose_name_plural
|
||||
|
||||
context = self.admin_site.each_context(request)
|
||||
if VERSION <= (1, 7):
|
||||
context = {}
|
||||
else:
|
||||
context = self.admin_site.each_context(request)
|
||||
|
||||
context.update({
|
||||
'title': u'Drag and drop {0} to change display order'.format(
|
||||
capfirst(verbose_name_plural)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue