Hi everyone,

This is about ticket (https://code.djangoproject.com/ticket/13794) where 
inline formsets don't respect a foreign key's to_field. I've written about 
this issue before, even tried a 5 for 1 but I'm having a hard time getting 
feedback on it. This bug doesn't just affect django admin but any use of 
inline formsets based on a to_field.

This bug can cause data loss. If you are lucky you'll see the error that 
the original reporter posted in the ticket but If the value of the to_field 
happens to be the same as the primary key of a different row on the same 
table it will silently and irreparably replace your relationships. Leading 
to very hard to track down bugs and real data loss.

It's seems not many people use to_fields but it is an official feature that 
is currently seriously broken for inline formsets and would be really nice 
to get this fixed. There are two possible patches there and I am happy to 
put in the work to get a fix accepted. So if you are willing to review and 
work with me on it please let me know.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to