Changed in Django 1.5: the first parameter that is not used for citation, which was incompatible with other template tags. Starting with Django 1.5, it is evaluated according to the usual rules: it can be a string with quotes or a variable that will be viewed in context.
So: "{% url 'post_content' product_id=p.id %}".
source
share