Hi,
I'm working through chapter 7 of the djangobook online. and i've got
the following:
def search(request):
if 'criteria' in request.GET:
message = 'You searched for: %r' % request.GET['criteria']
else:
message = 'You submitted an empty form.'
return HttpResponse(message)
however, if i leave it blank rather than it saying "You submitted an
empty form" it says:
You searched for: u''.
Can someone tell me how to fix this or mention why it occurs?
Thanks,
Andrew
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---