Doh, fixed. Fix below for anyone else with the same problem:
def post(self, request, *args, **kwargs): form = self.get_form() if form.is_valid(): return self.form_valid(form) else: return self.form_invalid(form, *args, **kwargs) def form_invalid(self, form, *args, **kwargs): messages.error(self.request, '{0} could not be saved.'.format(self.model.__name__)) if self.request.is_ajax(): return JsonResponse(form.errors, status=400) return super(ShowForumPostsView, self).form_invalid(form) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f53fca4a-dd06-4dbc-82c4-21d7483e8f23%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.