#27416: ModelFormSet with queryset accepts invalid POST data for outer models and create unexpected empty data. -------------------------------------+------------------------------------- Reporter: Hiroki Kiyohara | Owner: Hiroki | Kiyohara Type: Bug | Status: assigned Component: Forms | Version: 1.10 Severity: Normal | Resolution: Keywords: formset,modelform | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Hiroki Kiyohara): Thank you. I want to check not to exist the "empty data", so the test has `self.assertEqual(Author.objects.count(), 2)`. Without chanes of the code, It will be `3`, (`author`, `other_author`, and unexpected empty data). The `other_author.name` won't be `"Changed name"` even we don't chande codes. I'll check something I said is correct again later. If you feel the test or changes is hard to understand, I'll improve so please give me any advices. -- Ticket URL: <https://code.djangoproject.com/ticket/27416#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.879875b3fb9a488ee64c9d282789a3f4%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.