I realized that, there's nothing wrong with the removing code. The
problem is the return statement. when the dictionary req is empty the
def returns u"" and somehow old request.GET remains unchanged. So i
should return a specific value, when the dictionary req is null.
2011/6/2 ozgur yilmaz :
> Hi
Hi,
I have a custom templatetag function like this:
@register.filter(name='rem_get_request')
def rem_get_request(getrequest,name):
req = getrequest.copy()
for get_item in name.split('&'):
if get_item in req and req[get_item]:
get_item = get
2 matches
Mail list logo