Merge pull request #73 from ygwain/master
Python 2.6.x compatibility fix (unindexed str.format in admin.py
This commit is contained in:
@@ -99,7 +99,7 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
|
|||||||
order can be changed via drag-and-drop.
|
order can be changed via drag-and-drop.
|
||||||
"""
|
"""
|
||||||
opts = self.model._meta
|
opts = self.model._meta
|
||||||
has_perm = request.user.has_perm('{}.{}'.format(opts.app_label,
|
has_perm = request.user.has_perm('{0}.{1}'.format(opts.app_label,
|
||||||
opts.get_change_permission()))
|
opts.get_change_permission()))
|
||||||
|
|
||||||
objects = self.queryset(request)
|
objects = self.queryset(request)
|
||||||
|
|||||||
Reference in New Issue
Block a user