Merge branch 'master' into develop
commit
6ffbb9b358
16
README.md
16
README.md
|
|
@ -2,11 +2,7 @@
|
|||
|
||||
[](https://travis-ci.org/iambrandontaylor/django-admin-sortable)
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
Current version: 2.0.12
|
||||
=======
|
||||
Current version: 2.0.14
|
||||
>>>>>>> Stashed changes
|
||||
Current version: 2.0.15
|
||||
|
||||
This project makes it easy to add drag-and-drop ordering to any model in
|
||||
Django admin. Inlines for a sortable model may also be made sortable,
|
||||
|
|
@ -500,19 +496,11 @@ ordering on top of that just seemed a little much in my opinion.
|
|||
### Status
|
||||
django-admin-sortable is currently used in production.
|
||||
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
### What's new in 2.0.12?
|
||||
- Fixed an issue with CSRF_COOKIE_NAME not being passed correctly to inlines. Thanks [@Hovercross](https://github.com/Hovercross) for reporting the issue.
|
||||
=======
|
||||
### What's new in 2.0.14?
|
||||
### What's new in 2.0.15?
|
||||
- Refactored exception handling when determining `order_field_name`
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
|
||||
### Future
|
||||
- Better template support for foreign keys that are self referential. If someone would like to take on rendering recursive sortables, that would be super.
|
||||
|
||||
|
||||
### License
|
||||
django-admin-sortable is released under the Apache Public License v2.
|
||||
|
|
|
|||
16
README.rst
16
README.rst
|
|
@ -3,11 +3,7 @@ Django Admin Sortable
|
|||
|
||||
|Build Status|
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
Current version: 2.0.12
|
||||
=======
|
||||
Current version: 2.0.14
|
||||
>>>>>>> Stashed changes
|
||||
Current version: 2.0.15
|
||||
|
||||
This project makes it easy to add drag-and-drop ordering to any model in
|
||||
Django admin. Inlines for a sortable model may also be made sortable,
|
||||
|
|
@ -615,19 +611,11 @@ Status
|
|||
|
||||
django-admin-sortable is currently used in production.
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
What's new in 2.0.12?
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- Fixed an issue with CSRF\_COOKIE\_NAME not being passed correctly to
|
||||
inlines. Thanks [@Hovercross](https://github.com/Hovercross) for
|
||||
reporting the issue.
|
||||
=======
|
||||
What's new in 2.0.14?
|
||||
What's new in 2.0.15?
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- Refactored exception handling when determining ``order_field_name``
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
Future
|
||||
~~~~~~
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
VERSION = (2, 0, 14)
|
||||
VERSION = (2, 0, 15)
|
||||
DEV_N = None
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
{
|
||||
// set icons based on position
|
||||
lineItems.each(function(index, element) {
|
||||
var icon = $(element).find('> a .fa');
|
||||
var icon = $(element).find('a.admin_sorting_url .fa');
|
||||
icon.removeClass('fa-sort-desc fa-sort-asc fa-sort');
|
||||
|
||||
if (index === 0) {
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
<form>
|
||||
<input name="pk" type="hidden" value="{{ object.pk }}" />
|
||||
<a href="{% url 'admin:admin_do_sorting' object.model_type_id %}" class="admin_sorting_url"><i class="fa fa-{% if forloop.first %}sort-desc{% elif forloop.last %}sort-asc{% else %}sort{% endif %}"></i> {{ object }}</a>
|
||||
</form>
|
||||
<a href="{% url 'admin:admin_do_sorting' object.model_type_id %}" class="admin_sorting_url"><i class="fa fa-{% if forloop.first %}sort-desc{% elif forloop.last %}sort-asc{% else %}sort{% endif %}"></i> {{ object }}</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue