1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 23:42:25 +00:00

Transaction can't be attached to a closed remittance

This commit is contained in:
Yohann D'ANELLO 2020-03-25 00:25:24 +01:00
parent 432f14d9d1
commit 075cb1b592

View File

@ -121,6 +121,8 @@ class LinkTransactionToRemittanceForm(forms.ModelForm):
# Add submit button
self.helper.add_input(Submit('submit', _("Submit"), attr={'class': 'btn btn-block btn-primary'}))
self.fields["remittance"].queryset = Remittance.objects.filter(closed=False)
def clean_last_name(self):
"""
Replace the first name in the information of the transaction.