I have to agree that it should return false if there is no data.  
Otherwise how are you going to tell the difference between a POST  
with no data and a POST with data.

Another alternative is maybe request.method.POST and  
request.method.GET for testing the method.

On 18/06/2006, at 9:20 PM, Bill de hÓra wrote:

>
> Luke Plant wrote:
>>
>> Long version:
>> request.POST is (essentially) a dictionary of post variables.  As  
>> such,
>> if it is empty, it evaluates to False, even if the request method is
>> 'POST'.
>
> That's a bug, imo.
>
> cheers
> Bill
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to