> Exception Type: AttributeError Exception Value:
>
> 'ModelFormOptions' object has no attribute 'label'
> Exception Location: /opt/virtualenvs/traceback/lib/python3.4/site-packages/django/forms/models.py in _get_foreign_key, line 1023
But I can't find anything in the documents that might suggest what's causing it, and my google fu is failing me. Running Centos 7, py 3.4 from EPEL. Everything in a virtualenv
Was working until I implemented inlineformset_factory with:
ChemoRegimeFormSet = inlineformset_factory(Patient, ChemoRegime, extra=1)
Patient has a m2m connection to ChemoType, which is through ChemoRegime.
(ie, ChemoRegime has the FK to Patient, and an FK to ChemoType)
What am I doing wrong, how can I fix it?
cheers
L.
------
"The antidote to apocalypticism is
apocalyptic civics. Apocalyptic civics is the
insistence that we cannot ignore the truth, nor should we panic about
it. It is a shared consciousness that our institutions have failed and
our ecosystem is collapsing, yet we are still here — and we are creative
agents who can shape our destinies. Apocalyptic civics is the
conviction that the only way out is through, and the only way through is
together. "
Greg Bloom @greggish
https://twitter.com/greggish/status/873177525903609857