Hi,

I'm using a ModelMutlipleChoiceField for a comma separated field and
the list of selected object does not respect order of the html field.

After several hours of tracing, understanding how it all work, I
discovered that the raw data of the field(widget) has the right order
but that converting it to a query set in the clean method does indeed
lose the ordering.

I already override the clean_<fieldname>method on my custom form to
map the queryset to a csv string(for comma separated integer field),
if there's a better way to do this, I'm also opened for suggestions.
Is there a way to fix this cleanly. The only solution I found as of
now is reorder the sequence based on raw data also in this method.

I'm using development version at revision 12853.

Thanks

Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to