Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url(r'^create_resource/(?P<node_id>\d+)/(?P<node_name>\w+)?$', views.create_resource, name='create_resource'),
- #Does work
- <a href="{% url 'create_resource_params' node.id 'filler' %}"> Add Resource to this node </a>
- #Doesnt work
- <a href="{% url 'create_resource_params' node.id node.name %}"> Add Resource to this node </a>
- <a href="{% url 'create_resource_params' node.id '{{node.name}}' %}"> Add Resource to this node </a>
- <a href="{% url 'create_resource_params' node.id 'node.name' %}"> Add Resource to this node </a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement