mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-21 15:32:14 +00:00
Add missing explicit fields definition django 1.8 realted
This commit is contained in:
@@ -115,6 +115,7 @@ class InvoiceEvent(generic.View):
|
|||||||
|
|
||||||
class PaymentCreate(generic.CreateView):
|
class PaymentCreate(generic.CreateView):
|
||||||
model = models.Payment
|
model = models.Payment
|
||||||
|
fields = ['invoice','date','amount','method']
|
||||||
|
|
||||||
def get_initial(self):
|
def get_initial(self):
|
||||||
initial = super(generic.CreateView, self).get_initial()
|
initial = super(generic.CreateView, self).get_initial()
|
||||||
|
|||||||
Reference in New Issue
Block a user