Ensure quickupload image field uniqueness

This commit is contained in:
2025-04-10 11:38:33 +02:00
parent 0f961c71e0
commit 6128b6564c
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Generated by Django 4.2.20 on 2025-04-10 08:14
# Generated by Django 4.2.20 on 2025-04-10 09:34
import django.db.models.deletion
from django.conf import settings
@ -29,6 +29,7 @@ class Migration(migrations.Migration):
"image",
models.ImageField(
height_field="height",
unique=True,
upload_to="upload/%Y/%m/%d",
width_field="width",
),