Fixed path to jQueryUI in change form.

Version bump to 1.6.1
master
Brandon Taylor 2013-11-25 21:32:34 -05:00
parent 30f13aedff
commit 41be929a7d
4 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
VERSION = (1, 6, 0) # following PEP 386
VERSION = (1, 6, 1) # following PEP 386
DEV_N = None

View File

@ -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)

View File

@ -8,7 +8,7 @@
{% url 'admin:jsi18n' as jsi18nurl %}
{% if has_sortable_tabular_inlines or has_sortable_stacked_inlines %}
<script type="text/javascript" src="{% static 'adminsortable/js/jquery-ui.js' %}"></script>
<script type="text/javascript" src="{% static 'adminsortable/js/jquery-ui-django-admin.min.js' %}"></script>
<script type="text/javascript" src="{% static 'adminsortable/js/jquery.django-csrf.js' %}"></script>
{% endif %}