def get_context_data(self, **kwargs):
     ctx = super(ProformaDetailView, self).get_context_data(**kwargs)
     form_class = forms.proformaitem_form_factory(
         with_price=self.object.disaggregated
     )
     ctx.update({
         'form': form_class(initial={'proforma': self.object, }),
         'MEDIA_URL': settings.MEDIA_URL,
     })
     return ctx
 def get_form_class(self):
     return forms.proformaitem_form_factory(
         with_price=self.object.proforma.disaggregated
     )
 def get_form_class(self):
     return forms.proformaitem_form_factory()