diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-14 15:54:21 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-14 15:54:21 +0100 |
commit | f312ec6d4a577e71d76cf85632a198b0c1913703 (patch) | |
tree | eccd268d4432c32b9fee6665e0bbba87967b6fef /pyblackbird_cc/payments/migrations | |
parent | d2abe12612108b94135dcb0701614dc216fb92d2 (diff) |
wip: adding shopping card functionality
Diffstat (limited to 'pyblackbird_cc/payments/migrations')
-rw-r--r-- | pyblackbird_cc/payments/migrations/0007_remove_cartitem_quantity_and_more.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pyblackbird_cc/payments/migrations/0007_remove_cartitem_quantity_and_more.py b/pyblackbird_cc/payments/migrations/0007_remove_cartitem_quantity_and_more.py new file mode 100644 index 0000000..e976059 --- /dev/null +++ b/pyblackbird_cc/payments/migrations/0007_remove_cartitem_quantity_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 5.0.4 on 2024-09-14 14:40 + +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('payments', '0006_subscription_plan'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.RemoveField( + model_name='cartitem', + name='quantity', + ), + migrations.AddConstraint( + model_name='subscription', + constraint=models.UniqueConstraint(fields=('user', 'plan'), name='unique_user_plan'), + ), + ] |