#17167: ModelForm model=class not honoring reference fields with secondary database -------------------------------------+------------------------------------- Reporter: furbeenator@… | Owner: nobody Type: Bug | Status: reopened Component: Forms | Version: 1.3 Severity: Normal | Resolution: Keywords: ModelForm, using(), | Triage Stage: foreign key, reference field | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by anonymous):
* status: closed => reopened * resolution: invalid => Comment: This does not span multiple databases. The employee and department tables are both in the secondary database. I can print the employee's department just fine, it is when I use it as an instance to a ModelForm that the references do not work. It is forcefully looking in the default database for the department, even though the employee object looks to the secondary database correctly. -- Ticket URL: <https://code.djangoproject.com/ticket/17167#comment:3> 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 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.