Adds model for released carts

This commit is contained in:
Christopher Neugebauer 2016-03-27 19:13:05 +11:00
parent 3e4e52b165
commit b65223aaa1
2 changed files with 20 additions and 0 deletions

View file

@ -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),
),
]

View file

@ -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):