From b65223aaa1eab38c07b663153dda729611b06c2c Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sun, 27 Mar 2016 19:13:05 +1100 Subject: [PATCH] Adds model for released carts --- registrasion/migrations/0008_cart_released.py | 19 +++++++++++++++++++ registrasion/models.py | 1 + 2 files changed, 20 insertions(+) create mode 100644 registrasion/migrations/0008_cart_released.py diff --git a/registrasion/migrations/0008_cart_released.py b/registrasion/migrations/0008_cart_released.py new file mode 100644 index 00000000..1d805c94 --- /dev/null +++ b/registrasion/migrations/0008_cart_released.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('registrasion', '0007_auto_20160326_2105'), + ] + + operations = [ + migrations.AddField( + model_name='cart', + name='released', + field=models.BooleanField(default=False), + ), + ] diff --git a/registrasion/models.py b/registrasion/models.py index c95e1740..2421adf9 100644 --- a/registrasion/models.py +++ b/registrasion/models.py @@ -413,6 +413,7 @@ class Cart(models.Model): reservation_duration = models.DurationField() revision = models.PositiveIntegerField(default=1) active = models.BooleanField(default=True) + released = models.BooleanField(default=False) # Refunds etc @classmethod def reserved_carts(cls):