diff --git a/README.md b/README.md index 0c49cbd..2c6bdb5 100644 --- a/README.md +++ b/README.md @@ -284,10 +284,11 @@ ordering on top of that just seemed a little much in my opinion. django-admin-sortable is currently used in production. -### What's new in 1.6? +### What's new in 1.6.1? - Faster query counting - thanks [PyKaB](https://github.com/PyKaB) - Updated jQueryUI to be compatible with jQuery 1.9.x or higher. - Django 1.6 compatibility +- Fixed the link to jQueryUI in the admin sortable change form (facepalm) ### Future diff --git a/adminsortable/__init__.py b/adminsortable/__init__.py index 9363835..0d2f3f5 100755 --- a/adminsortable/__init__.py +++ b/adminsortable/__init__.py @@ -1,4 +1,4 @@ -VERSION = (1, 6, 0) # following PEP 386 +VERSION = (1, 6, 1) # following PEP 386 DEV_N = None diff --git a/adminsortable/admin.py b/adminsortable/admin.py index 8e55fa4..dc0e819 100644 --- a/adminsortable/admin.py +++ b/adminsortable/admin.py @@ -99,7 +99,7 @@ class SortableAdmin(SortableAdminBase, ModelAdmin): order can be changed via drag-and-drop. """ opts = self.model._meta - has_perm = request.user.has_perm('{0}.{1}'.format(opts.app_label, + has_perm = request.user.has_perm('{}.{}'.format(opts.app_label, opts.get_change_permission())) objects = self.queryset(request) diff --git a/adminsortable/templates/adminsortable/change_form.html b/adminsortable/templates/adminsortable/change_form.html index b72f4e9..6f2cc64 100644 --- a/adminsortable/templates/adminsortable/change_form.html +++ b/adminsortable/templates/adminsortable/change_form.html @@ -8,7 +8,7 @@ {% url 'admin:jsi18n' as jsi18nurl %} {% if has_sortable_tabular_inlines or has_sortable_stacked_inlines %} - + {% endif %}