Skip to content
Snippets Groups Projects
Verified Commit b58273d2 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Implement get_billing_email_recipients

parent ffc85ac5
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.
`1.4.5`_
--------
Fixed
~~~~~
* Implement get_billing_email_recipients() to get invoices send to guardians
`1.4.4`_
--------
......@@ -138,3 +146,4 @@ Added
.. _1.4.1: https://edugit.org/Teckids/hacknfun//AlekSIS-App-Paweljong/-/tags/1.4.1
.. _1.4.2: https://edugit.org/Teckids/hacknfun//AlekSIS-App-Paweljong/-/tags/1.4.2
.. _1.4.3: https://edugit.org/Teckids/hacknfun//AlekSIS-App-Paweljong/-/tags/1.4.3
.. _1.4.5: https://edugit.org/Teckids/hacknfun//AlekSIS-App-Paweljong/-/tags/1.4.5
......@@ -274,6 +274,9 @@ class EventRegistration(ExtensibleModel):
def get_person(self):
return self.person
def get_billing_email_recipients(self):
return [self.person.email] + list(self.person.guardians.values_list("email", flat=True))
def get_invoice(self):
# FIXME Maybe do not hard-code this
client, __ = Client.objects.get_or_create(name="Teckids e.V.")
......
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