python - django formsets can_delete header -
I'm new to the deegago, please stand with me ..
generated a template It all works well, except I am unable to provide the header in the can_delete column.
My Django looks.py looks like this:
def add_exchange (request): reference = requestContacts (request) ExpFormSet = Modelformset_factory (expense, excess = 1, max_num = 10, fields = ('exp_date', 'description', 'amount'), can_delete = true) if request.method == 'POST': formset = exp.conf (request.POST ) If formset.sis_valid (): Formset.save (commit = true) formset = expformet () Other: print "Errors are formset", formset.errors else: formset = expformet (queryset = expenditure.objects.none ()) The form of the temple code is given below:
Comments
Post a Comment