diff --git a/ctfhub/migrations/0021_alter_team_avatar.py b/ctfhub/migrations/0021_alter_team_avatar.py new file mode 100644 index 0000000..99052ff --- /dev/null +++ b/ctfhub/migrations/0021_alter_team_avatar.py @@ -0,0 +1,26 @@ +# Generated by Django 4.2.2 on 2023-07-04 16:06 + +import ctfhub.validators +import django.core.files.storage +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("ctfhub", "0020_alter_member_hedgedoc_password"), + ] + + operations = [ + migrations.AlterField( + model_name="team", + name="avatar", + field=models.ImageField( + blank=True, + storage=django.core.files.storage.FileSystemStorage( + base_url="/uploads/", location="/code/uploads" + ), + upload_to="media/", + validators=[ctfhub.validators.challenge_file_max_size_validator], + ), + ), + ]