On Fri, 2006-07-21 at 22:00 +1000, Malcolm Tredinnick wrote:
[...]
> If you want to pass extra information into a generic view that requires
> some processing (as in this case), write a little view of your own that
> does the processing and then passes off handling to the generic view:
>
> def steves_update(request, model, location_id):
> return create_object(model = model,
> extra_context = {'location_id': location_id})
Oops... spot the deliberate mistake. :-)
You also need to pass the "request" parameter into create_object() as
well as the model and extra_context.
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---