mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-05-17 09:12:52 +02:00
22 lines
596 B
Python
22 lines
596 B
Python
|
# Generated by Django 4.0.4 on 2022-05-05 16:46
|
||
|
|
||
|
import django.db.models.expressions
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
dependencies = [
|
||
|
("purchase", "0007_alter_basketitem_unit_price_cents"),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.AddConstraint(
|
||
|
model_name="basketitem",
|
||
|
constraint=models.UniqueConstraint(
|
||
|
django.db.models.expressions.F("product"),
|
||
|
django.db.models.expressions.F("basket"),
|
||
|
name="unique_product_per_basket",
|
||
|
),
|
||
|
),
|
||
|
]
|