aboutsummaryrefslogblamecommitdiffstats
path: root/alphabetlearning/payments/migrations/0007_remove_cartitem_quantity_and_more.py
blob: e976059d9fbe5cae066b69252346d702f40f1db7 (plain) (tree)






















                                                                                                 
# 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'),
        ),
    ]