Could you solve this issue? May I know what was the issue? I'm facing this issue right now.
On Monday, August 21, 2017 at 11:41:29 AM UTC+5:30, Lachlan Musicman wrote:
-- On Monday, August 21, 2017 at 11:41:29 AM UTC+5:30, Lachlan Musicman wrote:
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 virtualenvWas 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?cheersL.------
"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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/bf4d29e4-6ae6-4fd7-8748-7e9c106233ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment