-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reuse abstract Publication in partner app, renamed logo into image
- Loading branch information
1 parent
29680b9
commit 9e3e12c
Showing
11 changed files
with
63 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
.../partner/migrations/0004_remove_partner_logo_partner_image_alter_partner_name_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Generated by Django 5.0.9 on 2024-09-23 15:36 | ||
|
||
import storages.backends.s3 | ||
from django.db import migrations, models | ||
|
||
import lacommunaute.utils.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("partner", "0003_alter_partner_created_alter_partner_updated"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="partner", | ||
old_name="logo", | ||
new_name="image", | ||
), | ||
migrations.AlterField( | ||
model_name="partner", | ||
name="name", | ||
field=models.CharField(max_length=100, verbose_name="Name"), | ||
), | ||
migrations.AlterField( | ||
model_name="partner", | ||
name="slug", | ||
field=models.SlugField(max_length=255, unique=True, verbose_name="Slug"), | ||
), | ||
migrations.AlterField( | ||
model_name="partner", | ||
name="image", | ||
field=models.ImageField( | ||
storage=storages.backends.s3.S3Storage(bucket_name="private-bucket", file_overwrite=False), | ||
upload_to="", | ||
validators=[lacommunaute.utils.validators.validate_image_size], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="partner", | ||
name="short_description", | ||
field=models.CharField(blank=True, max_length=400, null=True, verbose_name="Short Description"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters