Skip to content

Commit

Permalink
fixup! Calum's suggestion on help_text and upload_to
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Sep 3, 2024
1 parent ebca106 commit c0423df
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 5.0.8 on 2024-09-03 09:35

import storages.backends.s3
from django.db import migrations, models

import lacommunaute.utils.validators


class Migration(migrations.Migration):
dependencies = [
("partner", "0001_initial"),
]

operations = [
migrations.AlterModelOptions(
name="partner",
options={"ordering": ["-created"], "verbose_name": "Partner", "verbose_name_plural": "Partners"},
),
migrations.AlterField(
model_name="partner",
name="logo",
field=models.ImageField(
help_text="1200x600 recommandé",
storage=storages.backends.s3.S3Storage(bucket_name="private-bucket", file_overwrite=False),
upload_to="logos/",
validators=[lacommunaute.utils.validators.validate_image_size],
),
),
]

0 comments on commit c0423df

Please sign in to comment.