def ng_save(self, request, *args, **kwargs):
form = self.get_form(self.get_form_class())<EOL>if form.is_valid():<EOL><INDENT>obj = form.save()<EOL>return self.build_json_response(obj)<EOL><DEDENT>raise ValidationError(form.errors)<EOL>
Called on $save()
Use modelform to save new object or modify an existing one