text: from wagtail.contrib.modeladmin.views import CreateView, EditView
  
  from hypha.apply.utils.blocks import show_admin_form_error_messages
  
  
  class CreateReviewFormView(CreateView):
  
      def form_invalid(self, form):
          show_admin_form_error_messages(self.request, form)
          return self.render_to_response(self.get_context_data(form=form))
  
  
  class EditReviewFormView(EditView):
  
      def form_invalid(self, form):
          show_admin_form_error_messages(self.request, form)
          return self.render_to_response(self.get_context_data(form=form))
  