1👍
✅
Your view name createinvoice
clashes with your form createinvoice
. They should be different.
Your code would be much clearer if you used underscores for function names (e.g. def create_invoice(...)
), and CamelCase for class names (e.g. class CreateInvoice(...)
, CreateInvoiceFormSet
, …)
Source:stackexchange.com