mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-23 07:52:23 +00:00
Merge branch 'fix_conso' into 'master'
Fix template for TemplateTransaction in Conso form See merge request bde/nk20!50
This commit is contained in:
commit
d058d05cee
@ -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
Block a user