From 97df07adcf836e5982a3564c7e13dbfb2428cc1f Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 28 Dec 2022 09:23:38 +0100 Subject: [PATCH] Add missing mig --- .../0039_alter_character_profile_picture.py | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/character/migrations/0039_alter_character_profile_picture.py diff --git a/src/character/migrations/0039_alter_character_profile_picture.py b/src/character/migrations/0039_alter_character_profile_picture.py new file mode 100644 index 0000000..82be8cf --- /dev/null +++ b/src/character/migrations/0039_alter_character_profile_picture.py @@ -0,0 +1,34 @@ +# Generated by Django 4.1.4 on 2022-12-28 07:56 + +import functools + +from django.db import migrations, models + +import character.models.character + + +class Migration(migrations.Migration): + + dependencies = [ + ("character", "0038_character_profile_picture"), + ] + + operations = [ + migrations.AlterField( + model_name="character", + name="profile_picture", + field=models.ImageField( + blank=True, + null=True, + upload_to="profile_pictures", + validators=[ + functools.partial( + character.models.character.validate_image, + *(), + **{"megabytes_limit": 2}, + ) + ], + verbose_name="image de profil", + ), + ), + ]