Hello, I have come across this issue in Django v1.2.5, just test it on 1.4rc1 and can still reproduce. Not sure if it's a bug or a case of "don't do that". But here goes.
Here's the models.py: http://pastebin.com/8QU9dkYd Here's the admin.py: http://pastebin.com/JGFu5nhv So what we have are 3 models. Two models, B & C, have foreign keys to A. In addition, C has a foreign key to B. We create stacked inlines of B & C in A. Here's some fixture data to load & test: http://pastebin.com/h3FT7S6P If you try to delete an instance of B via the inline delete checkbox, you get a validation error: Exception Type: ValidationError at /admin/web/a/1/ Exception Value: [u'Select a valid choice. That choice is not one of the available choices.'] Now I get what's happening (I think), B gets deleted first, then the formset validation for C runs, tries to validate the drop down choice, and fails since B has already been deleted. What do you guys think? Is this a bug or a really really small corner case that most people will never stumble upon? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/wWgfqI_QAicJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
