How can I assign a variable inside the django templating system ?
Assuming Restaurant is a Model:
Restaurant
{% restaurant_id as restaurant.id %}
Note: You can use filters within the "with" template tag:
foo is {{ foo }} {% with bar=foo|slice'6:9' %} bar is {{ bar }} {% endwith %}