Hi, I'm trying to use the site framework, and it works, but I just
have one problem. I have a form (from form_for_model for example)
which represents an object which has a site foreign key. The site
selection shows up just fine in the form. But when I try to submit it,
it complains about the site_id being null (event though the site
variable in request.POST is correct, site id that is). Am I doing
something wrong or how I'm supposed to accomplish this? The admin site
works just fine, I can create objects there but I really need a set up
a form for my site. For now, I set the site field in models.py to
blank=True, and after submission I manually set the site field. This
is, however, not very intuitive way of doing this. Is newforms still
lacking this or is there something else I need to take in
consideration?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to