1👍
This is why you should use the QueryDict methods as this:
s_name = request.GET.get('selection', None)
if not s_name:
#if s_name is None
#...
That way it will fallback correctly if s_name is not present.
Source:stackexchange.com
1👍
This is why you should use the QueryDict methods as this:
s_name = request.GET.get('selection', None)
if not s_name:
#if s_name is None
#...
That way it will fallback correctly if s_name is not present.