Skip to content

Commit 92b0d07

Browse files
Applied makemigrations for the shop models
1 parent 2c68e43 commit 92b0d07

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 5.2 on 2025-07-03 12:40
2+
3+
from django.conf import settings
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('shop', '0004_alter_review_unique_together_and_more'),
11+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12+
]
13+
14+
operations = [
15+
migrations.AlterUniqueTogether(
16+
name='review',
17+
unique_together=set(),
18+
),
19+
migrations.AddConstraint(
20+
model_name='review',
21+
constraint=models.UniqueConstraint(fields=('user', 'product'), name='unique_user_product_review', violation_error_message='A user can only leave one review per product.'),
22+
),
23+
]

0 commit comments

Comments
 (0)