diff --git a/counter/models.py b/counter/models.py index 4f6f25ea..61665e14 100644 --- a/counter/models.py +++ b/counter/models.py @@ -181,7 +181,7 @@ class BillingInfo(models.Model): if self.address_2: data["Address"]["Address2"] = self.address_2 xml = dict2xml(data, wrap="Billing", newlines=False) - return '\n' + xml + return '' + xml def __str__(self): return f"{self.first_name} {self.last_name}" diff --git a/eboutic/templates/eboutic/eboutic_makecommand.jinja b/eboutic/templates/eboutic/eboutic_makecommand.jinja index eb2f6def..1f4016b0 100644 --- a/eboutic/templates/eboutic/eboutic_makecommand.jinja +++ b/eboutic/templates/eboutic/eboutic_makecommand.jinja @@ -102,8 +102,8 @@
{% endif %} + {% csrf_token %}