Commit eea9bd17 authored by stef's avatar stef

[fix] now saving resource_name

parent 32251f64
......@@ -47,6 +47,7 @@ def add(request):
operator = form.cleaned_data['operator'],
contract = form.cleaned_data['contract'],
resource = form.cleaned_data['resource'],
resource_name = form.cleaned_data['resource_name'],
type = form.cleaned_data['type'],
media = form.cleaned_data['media'],
temporary = form.cleaned_data['temporary'],
......@@ -98,4 +99,4 @@ def index(request):
def view(request,id):
v = get_object_or_404(Violation, pk=id)
return render_to_response('view.html', { 'v': v, })
return render_to_response('view.html', { 'v': v, },context_instance=RequestContext(request))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment