Merge "Edit Extra Spec Value Fail"

This commit is contained in:
Jenkins 2016-05-06 05:13:27 +00:00 committed by Gerrit Code Review
commit 3d14666b50

View File

@ -119,3 +119,10 @@ class EditView(ExtraSpecMixin, forms.ModalFormView):
context['submit_url'] = reverse(self.submit_url, args=args)
context['modal_header'] = self.modal_header % self.kwargs['key']
return context
def form_invalid(self, form):
context = super(EditView, self).get_context_data()
context = self._populate_context(context)
context['form'] = form
context['modal_header'] = self.modal_header % self.kwargs['key']
return self.render_to_response(context)