Improve file popup

This commit is contained in:
Skia
2016-08-15 21:04:06 +02:00
parent 66fdf6cbf7
commit d4f87e7581
7 changed files with 56 additions and 17 deletions

View File

@ -167,7 +167,7 @@ class OperationCreateView(CanCreateMixin, CreateView):
form_class = modelform_factory(Operation,
fields=['amount', 'label', 'remark', 'journal', 'target_type', 'target_id', 'target_label', 'date', 'mode',
'cheque_number', 'invoice', 'accounting_type', 'done'],
widgets={'journal': HiddenInput, 'date': SelectDate})
widgets={'journal': HiddenInput, 'date': SelectDate, 'invoice': SelectFile})
template_name = 'core/create.jinja'
def get_initial(self):