Hi all.

the code:
models.py https://gist.github.com/karuso/9766764
views.py (edit function) https://gist.github.com/karuso/9766806

the problem:
When editing a Videoconference record through the VideoconferenceForm, 
Django returns an error: "Cannot resolve keyword 'videoconference' into 
field. Choices are:" followed by the list of the fields of the User object.


Oddly the problem shows only when:
- running the code under Apache with DEBUG=False (it all works great when 
DEBUG=True or when running under Django dev server regardless of DEBUG 
Value)
- I try to edit the form (i.e. it works as aspected when inserting a new 
record with no Videoconference instance passed to the form)

If I remove the viewers filed from the Videoconference class the problem 
disappears (in that case the class is no different from Room, 
PersonalComputer or Projector classes)
I've tried to use related_name with both managers field of the Asset class 
and viewers of the Videoconference class but with no success.

I hope I've been clear enough.

Thanks in advance,
Alex


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c0b8f0b9-6c9c-4cc9-ab80-3b0fe73205e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to