Skip to content

Commit

Permalink
Calum's suggestion on help_text and upload_to
Browse files Browse the repository at this point in the history
lacommunaute/partner/models.py

Co-authored-by: Calum Mackervoy <[email protected]>
  • Loading branch information
vincentporte and calummackervoy authored Sep 3, 2024
1 parent 229770d commit 7ebb7eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lacommunaute/partner/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Partner(DatedModel):
logo = models.ImageField(
storage=S3Boto3Storage(bucket_name=settings.AWS_STORAGE_BUCKET_NAME, file_overwrite=False),
validators=[validate_image_size],
upload_to="logos/",
help_text="1200x600 recommandé",
)
url = models.URLField(verbose_name="Lien vers le site du partenaire", null=True, blank=True)

Expand Down

0 comments on commit 7ebb7eb

Please sign in to comment.