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

Merge branch 'payments' of edugit.org:Teckids/hacknfun/AlekSIS-App-Paweljong into payments

parents 18f57ff5 fb2148dc
No related branches found
No related tags found
1 merge request!14Payments
Pipeline #58406 failed
# Generated by Django 3.2.12 on 2022-03-06 21:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('paweljong', '0014_move_sent_to_to_through'),
]
operations = [
migrations.AlterField(
model_name='voucher',
name='code',
field=models.CharField(blank=True, default='', max_length=255),
),
]
......@@ -192,7 +192,7 @@ class Voucher(ExtensibleModel):
verbose_name = _("Vouchers")
verbose_name_plural = _("Vouchers")
code = models.CharField(max_length=8, blank=True, default="")
code = models.CharField(max_length=255, blank=True, default="")
event = models.ForeignKey(
Event,
related_name="vouchers",
......@@ -283,9 +283,9 @@ class EventRegistration(ExtensibleModel):
"billing_first_name": self.person.first_name,
"billing_last_name": self.person.last_name,
"billing_address_1": f"{self.person.street} {self.person.housenumber}",
"billing_address_city": self.person.place,
"billing_address_postcode": self.person.postal_code,
"billing_email": self.perosn.email,
"billing_city": self.person.place,
"billing_postcode": self.person.postal_code,
"billing_email": self.person.email,
})
return invoice
......
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