sehmaschine/django-grappelli — Issue #66: Compatibility with django-positions
Author: bashmish
Created: 2011-12-14 22:31:28+00:00
State: open

There is great python module callsed [django-positions](https://github.com/jpwatts/django-positions).

I tried to use django-positions with django-grappelli for models with generic field in admin generic inlines. But there is a bug: there are SQL queries that are called by both Django admin and django-positions internal PositionManager. This results in unexpected indexes. For example, then you have 3 rows in generic inline and try to move the last row to first position, the rows get indexes 0, 2, 2 instead of 0, 1, 2.