google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

Sortable Inlines not working in Grappelli 2 #108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define an InlineAdmin class with sortable=True for a model that has a 
PositionField
2. Open Admin
3.

What is the expected output? What do you see instead?
Expected: Sortable inlines
Instead: Normal inlines

What version of the product are you using? On what operating system?
branches/grappelli_2 r.555 

Please provide any additional information below.

Original issue reported on code.google.com by u.petri on 5 Oct 2009 at 12:26

GoogleCodeExporter commented 9 years ago
that´s mainly a django-issue: as long as the ordering of items is not 
preserved in
case of errors, reordering doesn´t make sense. reordering (drag/drop) can 
easily be
achieved once this django-issue is solved.

since this issue is not related to grappelli, I´ll set it to "invalid".

Original comment by sehmaschine on 5 Oct 2009 at 12:36

GoogleCodeExporter commented 9 years ago
Then this should perhaps be noted in the documentation/wiki as I just wasted 3 
hours 
trying to get this to work

Original comment by u.petri on 5 Oct 2009 at 12:41

GoogleCodeExporter commented 9 years ago
the docs doesn´t include any information about sortables. where did you find 
that?

Original comment by sehmaschine on 5 Oct 2009 at 12:44

GoogleCodeExporter commented 9 years ago
me being wrong. I just saw that the page is not linked from the main-page but 
from
subpages. sorry for that.

Original comment by sehmaschine on 5 Oct 2009 at 12:46

GoogleCodeExporter commented 9 years ago
i alway wasted a bunch of time. here is where i was reading it.

http://code.google.com/p/django-grappelli/wiki/editinline

it looks like most of the plumbing is there for it though (even including the
ordering.js). is there a trivial way to get this working even though there is 
the
error-looses-order issue? i added the ordering.js in but that isnt enough.

my model that needs to get ordered is trivial and isnt likely to through errors 
on
submit.

thanks

Original comment by fakeemp...@gmail.com on 1 Dec 2009 at 9:36

GoogleCodeExporter commented 9 years ago
we don´t support this right now. it may be true that your models won´t throw 
errors -
but we need a bulletproof version ...

Original comment by sehmaschine on 1 Dec 2009 at 9:48

GoogleCodeExporter commented 9 years ago
bump, what's the status on this?

Original comment by gabejack...@gmail.com on 23 Jul 2010 at 3:03

GoogleCodeExporter commented 9 years ago
I think that django still doesn´t give us ordered_forms (in the right order, 
of course) in case of errors. as long as this problem isn´t solved, reordering 
inlines won´t work. once that problem is solved, integration is a matter of 
days.

Original comment by sehmaschine on 23 Jul 2010 at 3:15