-
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.
update abstracted Publication model, on optionnal and required field
- Loading branch information
1 parent
e015948
commit d7d612e
Showing
3 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
lacommunaute/documentation/migrations/0002_alter_category_image_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,49 @@ | ||
# Generated by Django 5.0.9 on 2024-09-24 13:03 | ||
|
||
import storages.backends.s3 | ||
from django.db import migrations, models | ||
|
||
import lacommunaute.utils.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("documentation", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="category", | ||
name="image", | ||
field=models.ImageField( | ||
blank=True, | ||
null=True, | ||
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="category", | ||
name="short_description", | ||
field=models.CharField(default="to be updated", max_length=400, verbose_name="Short Description"), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name="document", | ||
name="image", | ||
field=models.ImageField( | ||
blank=True, | ||
null=True, | ||
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="document", | ||
name="short_description", | ||
field=models.CharField(default="to be updated", max_length=400, verbose_name="Short Description"), | ||
preserve_default=False, | ||
), | ||
] |
32 changes: 32 additions & 0 deletions
32
lacommunaute/partner/migrations/0005_alter_partner_image_alter_partner_short_description.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,32 @@ | ||
# Generated by Django 5.0.9 on 2024-09-24 13:03 | ||
|
||
import storages.backends.s3 | ||
from django.db import migrations, models | ||
|
||
import lacommunaute.utils.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("partner", "0004_remove_partner_logo_partner_image_alter_partner_name_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="partner", | ||
name="image", | ||
field=models.ImageField( | ||
blank=True, | ||
null=True, | ||
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(default="to be updated", max_length=400, verbose_name="Short Description"), | ||
preserve_default=False, | ||
), | ||
] |
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