How do I pass a template variable as part of a string parameter to a template tag?
===

I use this link for my template. My intention is to bring the user to the next page of a paginated.. well, page:

    <a href="{% query_string 'page=page.next_page_number' 'page' %}">Next</a>

The problem is page.next_page_number is not evaluated as the next page number.

The template tag function query_string is supposed to remove then append the string argument to the url.

I saw this ticket to be exactly what my problem is:

[Add querystring helper methods to Page class][1]


I was aiming to make this the solution:

[Manipulate URL query strings using context variables using a template tag][2]

Can anyone help me please?

  [1]: https://code.djangoproject.com/ticket/10941
  [2]: http://djangosnippets.org/snippets/2237/