Hello ! I am trying to use the update_object generic view in http://www.djangosnippets.org/snippets/635/
I am using it directly in my urls.py like this : url(r'^(?P<object_id>\d+)/edit/$', permission_required('change_news')(update_object), { 'model' : News, 'model_form' : NewsForm, 'login_required' : True, }, ), which works fine. Now, I am trying to add an extra field like this : url(r'^(?P<object_id>\d+)/edit/$', permission_required('change_news')(update_object), { 'model' : News, 'model_form' : NewsForm, 'login_required' : True, 'extra_field' : { 'author' : request.user, } }, ), This of course doesnt work because the request isnt in the scope. I could redefine a view in my views.py and do the work on the request manually, but i have a feeling there is a solution to do that directly in my urls.py. any idea ? Thanks ! Guillaume -- Jabber : [EMAIL PROTECTED] Skype : Guillaume.Lederrey Projects : * http://rwanda.ledcom.ch/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---