aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking
diff options
context:
space:
mode:
Diffstat (limited to 'src/booking')
-rw-r--r--src/booking/migrations/0012_auto_20230802_1810.py18
-rw-r--r--src/booking/models.py2
2 files changed, 19 insertions, 1 deletions
diff --git a/src/booking/migrations/0012_auto_20230802_1810.py b/src/booking/migrations/0012_auto_20230802_1810.py
new file mode 100644
index 0000000..36095a1
--- /dev/null
+++ b/src/booking/migrations/0012_auto_20230802_1810.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.2 on 2023-08-02 18:10
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('booking', '0011_booking_aggregateid'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='booking',
+ name='aggregateId',
+ field=models.CharField(blank=True, max_length=36),
+ ),
+ ]
diff --git a/src/booking/models.py b/src/booking/models.py
index 09244d3..eb72eb2 100644
--- a/src/booking/models.py
+++ b/src/booking/models.py
@@ -34,7 +34,7 @@ class Booking(models.Model):
pdf = models.TextField(blank=True, default="")
idf = models.TextField(blank=True, default="")
# Associated LibLaaS aggregate
- aggregateId = models.CharField(blank=True, max_length=36, validators=[RegexValidator(regex='^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$', message='aggregate_id must be a valid UUID', code='nomatch')])
+ aggregateId = models.CharField(blank=True, max_length=36)
complete = models.BooleanField(default=False)