Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to pass primary key to url django

<a href="{% url 'category_detail' pk=post.category.id %}" >{{ post.category }}</a>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #primary #key #url #django
ADD COMMENT
Topic
Name
5+7 =