git-svn-id: https://django-pagination.googlecode.com/svn/trunk@16
7f1efe38-554e-0410-b69d-
834cb44da2d5
getvars = context['request'].GET.copy()
if 'page' in getvars:
del getvars['page']
getvars = context['request'].GET.copy()
if 'page' in getvars:
del getvars['page']
- to_return['getvars'] = "&%s" % getvars.urlencode()
+ if len(getvars.keys()) > 0:
+ to_return['getvars'] = "&%s" % getvars.urlencode()
+ else:
+ to_return['getvars'] = ''
return to_return
except KeyError:
return {}
return to_return
except KeyError:
return {}