9
You need to pass the slug into the url tag in the html.
Try something like this,
<a href="{% url 'update' slug=instance.slug %}"> Edit </a>
<a href="{% url 'delete' slug=instance.slug %}"> Delete</a>
Source:stackexchange.com
9
You need to pass the slug into the url tag in the html.
Try something like this,
<a href="{% url 'update' slug=instance.slug %}"> Edit </a>
<a href="{% url 'delete' slug=instance.slug %}"> Delete</a>