mirror of https://gitlab.crans.org/bde/nk20
[note] Fix template for TemplateTransaction in Conso form
This commit is contained in:
parent
67c20fada9
commit
79b9131049
|
@ -108,7 +108,7 @@ class ConsoForm(forms.ModelForm):
|
|||
self.instance.destination = button.destination
|
||||
self.instance.amount = button.amount
|
||||
self.instance.reason = '{} ({})'.format(button.name, button.category)
|
||||
self.instance.name = button.name
|
||||
self.instance.template = button
|
||||
self.instance.category = button.category
|
||||
super().save(commit)
|
||||
|
||||
|
|
Loading…
Reference in New Issue