parent
30f13aedff
commit
41be929a7d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
VERSION = (1, 6, 0) # following PEP 386
|
||||
VERSION = (1, 6, 1) # following PEP 386
|
||||
DEV_N = None
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue