Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. url(r'^create_resource/(?P<node_id>\d+)/(?P<node_name>\w+)?$', views.create_resource, name='create_resource'),
  2.  
  3. #Does work
  4. <a href="{% url 'create_resource_params' node.id 'filler' %}"> Add Resource to this node </a>
  5.  
  6. #Doesnt work
  7. <a href="{% url 'create_resource_params' node.id node.name %}"> Add Resource to this node </a>
  8. <a href="{% url 'create_resource_params' node.id '{{node.name}}' %}"> Add Resource to this node </a>
  9. <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