Exemplo n.º 1
0
 def get_context_data(self, **kwargs):
     ctx = super(QuotationDetailView, self).get_context_data(**kwargs)
     form_class = forms.quotationitem_form_factory(
         with_price=self.object.disaggregated
     )
     ctx.update({
         'form': form_class(initial={'quotation': self.object, }),
     })
     return ctx
Exemplo n.º 2
0
 def get_form_class(self):
     return forms.quotationitem_form_factory(
         with_price=self.object.quotation.disaggregated
     )
Exemplo n.º 3
0
 def get_form_class(self):
     return forms.quotationitem_form_factory()