-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
images: add validator which enforces alt texts on img tags
- Loading branch information
Showing
5 changed files
with
103 additions
and
0 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
34 changes: 34 additions & 0 deletions
34
adhocracy4/projects/migrations/0046_alter_project_information_alter_project_result.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,34 @@ | ||
# Generated by Django 4.2 on 2024-01-29 13:20 | ||
|
||
import adhocracy4.images.validators | ||
from django.db import migrations | ||
import django_ckeditor_5.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("a4projects", "0045_rename_field_m2mtopics_to_topics"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="project", | ||
name="information", | ||
field=django_ckeditor_5.fields.CKEditor5Field( | ||
blank=True, | ||
help_text="This description should tell participants what the goal of the project is, how the project’s participation will look like. It will be always visible in the „Info“ tab on your project’s page.", | ||
validators=[adhocracy4.images.validators.ImageAltTextValidator()], | ||
verbose_name="Description of your project", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="project", | ||
name="result", | ||
field=django_ckeditor_5.fields.CKEditor5Field( | ||
blank=True, | ||
help_text="Here you should explain what the expected outcome of the project will be and how you are planning to use the results. If the project is finished you should add a summary of the results.", | ||
validators=[adhocracy4.images.validators.ImageAltTextValidator()], | ||
verbose_name="Results of your project", | ||
), | ||
), | ||
] |
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