Re: HttpResponseNotModified returning 200 code

2012-08-22 Thread Kevin Anthony
wow, that's embarrassing. thanks. On Wed, Aug 22, 2012 at 4:16 PM, Alexis Roda < alexis.roda.villalo...@gmail.com> wrote: > Al 22/08/12 21:36, En/na Kevin Anthony ha escrit: > >> Here is my code: >> >> id = get_id(request) >> if id is not None: >> host = request.GET['host'] >>

Re: HttpResponseNotModified returning 200 code

2012-08-22 Thread Alexis Roda
Al 22/08/12 21:36, En/na Kevin Anthony ha escrit: Here is my code: id = get_id(request) if id is not None: host = request.GET['host'] if host!=None: command = command_queue.objects.all().filter(destination_hostname=host,user__id=id) if not co

HttpResponseNotModified returning 200 code

2012-08-22 Thread Kevin Anthony
Here is my code: id = get_id(request) if id is not None: host = request.GET['host'] if host!=None: command = command_queue.objects.all().filter(destination_hostname=host,user__id=id) if not command.count(): HttpResponseNotModified()