Re: Access the HTTP request from a model

2008-11-25 Thread Peter
Absolutely - that is exactly what I needed to know. Thanks! There is a link http://www.djangoproject.com/documentation/models/save_delete_hooks/ which I had looked at which actually turns out to be the wrong one. -- Peter > > Take a look at the following > doc:http://docs.djangoproject.com/en/d

Re: Access the HTTP request from a model

2008-11-24 Thread R. Gorman
The request data is available in your views as a dictionary. For example: def memberView(request): if request.method == 'POST': request.POST['foo'] ... R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Access the HTTP request from a model

2008-11-24 Thread Rajesh Dhawan
> I am new to Django so please excuse if this has been asked before - I > could not find anything in my list searches. > > I am using the standard admin for a model called Member. I can > override the save method to perform a small database tweak when a > member is saved. This will involve access

Re: Access the HTTP request from a model

2008-11-24 Thread R. Gorman
The request object is accessed in your view. def memberView(request): --~--~-~--~~~---~--~~ 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 unsub

Access the HTTP request from a model

2008-11-24 Thread Peter
Hi, I am new to Django so please excuse if this has been asked before - I could not find anything in my list searches. I am using the standard admin for a model called Member. I can override the save method to perform a small database tweak when a member is saved. This will involve accessing the