#15130: Model.validate_unique method doesn't take in account multi-db --------------------------------------+------------------------------------- Reporter: t2y | Owner: Status: reopened | Milestone: 1.3 Component: ORM aggregation | Version: 1.2 Resolution: | Keywords: multi-db Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 1 Needs_better_patch: 0 | --------------------------------------+------------------------------------- Changes (by t2y):
* status: closed => reopened * has_patch: 1 => 0 * resolution: worksforme => Comment: Hi ramiro, thank you for reviewing and making tests code. Though my explanation was not good, this problem occur only when a Model.validate_unique method is called. So, I fixed your test code to call validate_unique method. By running my test code, you can see ValidationError. I think what the save method was successed makes you wonder. The reason why the save mehtod is considered with "using" parameter for multi-db. -- Ticket URL: <http://code.djangoproject.com/ticket/15130#comment:6> Django <http://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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.