Hi All,

I'm seeing this error when I start my uwsgi



> 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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGBeqiOWLzy809Gcyxhn4iJ5XjkVrZ1iM_xYYGuqBHVjc%2BpHtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to