Bumped version to 1.5.5.

Fixed namespacing of so sorting urls.
Changed namespacing of sortable() calls.
Removed unit test to check for javascript include template, which has been eliminated.
This commit is contained in:
Brandon Taylor
2013-09-23 08:41:10 -04:00
parent 1bf917da61
commit 8f64f6ea76
10 changed files with 11 additions and 22 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
VERSION = (1, 5, 4) # following PEP 386
VERSION = (1, 5, 5) # following PEP 386
DEV_N = None
@@ -1,7 +1,7 @@
(function($){
$(function() {
$('.sortable').sortable({
jQuery('.sortable').sortable({
axis : 'y',
containment : 'parent',
tolerance : 'pointer',
@@ -6,7 +6,7 @@
var sortable_inline_rows = $('.inline-group .inline-related');
sortable_inline_rows.addClass('sortable');
$('.inline-group').sortable({
jQuery('.inline-group').sortable({
axis : 'y',
containment : 'parent',
create: function(event, ui) {
@@ -5,7 +5,7 @@
{
var tabular_inline_rows = $('.tabular table tbody tr');
tabular_inline_rows.addClass('sortable');
$('.tabular.inline-related').sortable({
jQuery('.tabular.inline-related').sortable({
axis : 'y',
containment : 'parent',
create: function(event, ui)
@@ -17,7 +17,7 @@
{% if inline_admin_form.has_auto_field %}{{ inline_admin_form.pk_field.field }}{% endif %}
{{ inline_admin_form.fk_field.field }}
{% if inline_admin_form.original %}
<input type="hidden" name="admin_sorting_url" value="../sorting/do-sorting/{{ inline_admin_form.original.model_type_id }}/" />
<input type="hidden" name="admin_sorting_url" value="{% url 'admin:admin_do_sorting' inline_admin_form.original.model_type_id %}" />
{% endif %}
</div>{% endfor %}
</div>
@@ -41,7 +41,7 @@
{% endfor %}
{% endspaceless %}
{% if inline_admin_form.original %}
<input type="hidden" name="admin_sorting_url" value="../sorting/do-sorting/{{ inline_admin_form.original.model_type_id }}/" />
<input type="hidden" name="admin_sorting_url" value="{% url 'admin:admin_do_sorting' inline_admin_form.original.model_type_id %}" />
{% endif %}
</td>
{% for fieldset in inline_admin_form %}
@@ -3,4 +3,4 @@
<form>
<input name="pk" type="hidden" value="{{ object.pk }}" />
</form>
<a href="../sorting/do-sorting/{{ object.model_type_id }}/" class="admin_sorting_url">{{ object }}</a>
<a href="{% url 'admin:admin_do_sorting' object.model_type_id %}" class="admin_sorting_url">{{ object }}</a>