Adds model for released carts
This commit is contained in:
parent
3e4e52b165
commit
b65223aaa1
2 changed files with 20 additions and 0 deletions
19
registrasion/migrations/0008_cart_released.py
Normal file
19
registrasion/migrations/0008_cart_released.py
Normal 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),
|
||||
),
|
||||
]
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue