-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Amélioration de la validation des champs url (#1565)
- Loading branch information
1 parent
f41f5c5
commit fb26956
Showing
5 changed files
with
264 additions
and
8 deletions.
There are no files selected for viewing
92 changes: 92 additions & 0 deletions
92
lemarche/siaes/migrations/0078_alter_historicalsiae_contact_social_website_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,92 @@ | ||
# Generated by Django 4.2.15 on 2024-12-04 16:51 | ||
|
||
from django.db import migrations, models | ||
|
||
import lemarche.utils.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("siaes", "0077_remove_siaeactivity_location_siaeactivity_locations_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="historicalsiae", | ||
name="contact_social_website", | ||
field=models.URLField( | ||
blank=True, | ||
help_text="Doit commencer par http:// ou https://", | ||
validators=[lemarche.utils.validators.OptionalSchemeURLValidator()], | ||
verbose_name="Réseau social", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalsiae", | ||
name="contact_website", | ||
field=models.URLField( | ||
blank=True, | ||
help_text="Doit commencer par http:// ou https://", | ||
validators=[lemarche.utils.validators.OptionalSchemeURLValidator()], | ||
verbose_name="Site internet", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalsiae", | ||
name="website", | ||
field=models.URLField( | ||
blank=True, | ||
validators=[lemarche.utils.validators.OptionalSchemeURLValidator()], | ||
verbose_name="Site internet", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="siae", | ||
name="contact_social_website", | ||
field=models.URLField( | ||
blank=True, | ||
help_text="Doit commencer par http:// ou https://", | ||
validators=[lemarche.utils.validators.OptionalSchemeURLValidator()], | ||
verbose_name="Réseau social", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="siae", | ||
name="contact_website", | ||
field=models.URLField( | ||
blank=True, | ||
help_text="Doit commencer par http:// ou https://", | ||
validators=[lemarche.utils.validators.OptionalSchemeURLValidator()], | ||
verbose_name="Site internet", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="siae", | ||
name="website", | ||
field=models.URLField( | ||
blank=True, | ||
validators=[lemarche.utils.validators.OptionalSchemeURLValidator()], | ||
verbose_name="Site internet", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="siaegroup", | ||
name="contact_social_website", | ||
field=models.URLField( | ||
blank=True, | ||
help_text="Doit commencer par http:// ou https://", | ||
validators=[lemarche.utils.validators.OptionalSchemeURLValidator()], | ||
verbose_name="Réseau social", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="siaegroup", | ||
name="contact_website", | ||
field=models.URLField( | ||
blank=True, | ||
help_text="Doit commencer par http:// ou https://", | ||
validators=[lemarche.utils.validators.OptionalSchemeURLValidator()], | ||
verbose_name="Site internet", | ||
), | ||
), | ||
] |
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