mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Clarify comment.
This commit is contained in:
parent
eb5a9e0a8a
commit
eb5f14fe22
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
|
|||
|
||||
for index in indexes:
|
||||
obj = objects_dict.get(index)
|
||||
# perform the update iff the order field has changed
|
||||
# perform the update only if the order field has changed
|
||||
if getattr(obj, order_field_name) != start_index:
|
||||
setattr(obj, order_field_name, start_index)
|
||||
# only update the object's order field
|
||||
|
|
|
|||
Loading…
Reference in a new issue