Add missing explicit fields definition django 1.8 realted

This commit is contained in:
Tom Price
2015-05-29 15:45:14 +01:00
parent bc14c0e33e
commit 3dc82e2de7

View File

@@ -115,6 +115,7 @@ class InvoiceEvent(generic.View):
class PaymentCreate(generic.CreateView):
model = models.Payment
fields = ['invoice','date','amount','method']
def get_initial(self):
initial = super(generic.CreateView, self).get_initial()