Skip to content
Snippets Groups Projects
Commit 27959b01 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Use configurable tezor data in models

parent c65f50d4
No related branches found
No related tags found
1 merge request!78Resolve "Rewrite registration wizard"
......@@ -397,9 +397,9 @@ class EventRegistration(ExtensibleModel):
def get_invoice(self):
# FIXME Maybe do not hard-code this
client, __ = Client.objects.get_or_create(name="Teckids e.V.")
client, __ = Client.objects.get_or_create(name=get_site_preferences()["paweljong__event_invoice_client_name"])
group, __ = InvoiceGroup.objects.get_or_create(
name="Hack'n'Fun-Veranstaltungen",
name=get_site_preferences()["paweljong__event_invoice_group_name"],
client=client,
defaults={
"template_name": "paweljong/invoice_pdf.html",
......
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