Skip to content
Snippets Groups Projects
Commit 694ecbd0 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix form

parent c0b824e3
No related branches found
No related tags found
1 merge request!19Payment choices
Pipeline #60928 passed
...@@ -347,10 +347,11 @@ class RegisterEventFinancial(ExtensibleForm): ...@@ -347,10 +347,11 @@ class RegisterEventFinancial(ExtensibleForm):
) )
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs) super().__init__(*args, **kwargs)
self.fields["payment_method"].choices = InvoiceGroup.objects.get(name="Hack'n'Fun-Veranstaltungen").get_variant_choices()
self.fields["payment_method"].choices = InvoiceGroup.objects.get(
name="Hack'n'Fun-Veranstaltungen"
).get_variant_choices()
class Meta: class Meta:
model = EventRegistration model = EventRegistration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment