Commit fb010aba authored by Okhin's avatar Okhin
Browse files

Fixing the AddView #22

parent 28e9cc7d
...@@ -146,8 +146,9 @@ class JSONMixin(object): ...@@ -146,8 +146,9 @@ class JSONMixin(object):
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
return HttpResponse(serializers.serialize('json', self.get_queryset())) return HttpResponse(serializers.serialize('json', self.get_queryset()))
class AddForm(FormView, MultipleObjectMixin): class AddForm(FormView):
template = 'index.html' model = Violation
template_name = 'index.html'
form_class = AddViolation form_class = AddViolation
success_url = '/' success_url = '/'
context_object_name = 'violations' context_object_name = 'violations'
......
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