How about checking for the existence of course_id in the view? Then if
it's blank you just send request.POST and if not you grab the instance
in the view and pass it as the instance kwarg.

Alternately you could do the same in the __init__ of the modelform,
before you call the super __init__. It depends on which one will be
easier to understand and maintain for your app.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to