--- /dev/null
+{% block title %}ERROR!{% endblock %}
+
+{% extends "base.html" %}
+
+{% block content %}
+ <h1 class="pagetitle">You do not have permission to perform this action!</h1>
+{% endblock %}
\ No newline at end of file
sedit = Sandwich.objects.get(slug=slug)
ingred = sedit.ingredients.all()
if not sedit.user == request.user:
- return HttpResponseRedirect(reverse('all_sandwiches'))
+ return render_to_response('nopermission.html', context_instance=RequestContext(request))
else:
if request.method == 'POST':
sform = SandwichForm(request.POST, request.FILES, instance=sedit)