-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#310] Add validate_bag_id + migrations
- Loading branch information
1 parent
2d1abfa
commit b9c2d53
Showing
5 changed files
with
132 additions
and
5 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...s/contactgegevens/migrations/0004_alter_organisatie_adres_nummeraanduiding_id_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 4.2.15 on 2025-01-08 11:12 | ||
|
||
from django.db import migrations, models | ||
import openklant.utils.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("contactgegevens", "0003_alter_persoon_overlijdensdatum"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="organisatie", | ||
name="adres_nummeraanduiding_id", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Identificatie van het adres bij de Basisregistratie Adressen en Gebouwen.", | ||
max_length=16, | ||
validators=[ | ||
openklant.utils.validators.CustomRegexValidator( | ||
message="Ongeldige nummeraanduiding BAG-ID", regex="^[0-9]{16}$" | ||
) | ||
], | ||
verbose_name="nummeraanduiding ID", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="persoon", | ||
name="adres_nummeraanduiding_id", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Identificatie van het adres bij de Basisregistratie Adressen en Gebouwen.", | ||
max_length=16, | ||
validators=[ | ||
openklant.utils.validators.CustomRegexValidator( | ||
message="Ongeldige nummeraanduiding BAG-ID", regex="^[0-9]{16}$" | ||
) | ||
], | ||
verbose_name="nummeraanduiding ID", | ||
), | ||
), | ||
] |
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
74 changes: 74 additions & 0 deletions
74
...tinteracties/migrations/0024_alter_betrokkene_bezoekadres_nummeraanduiding_id_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,74 @@ | ||
# Generated by Django 4.2.15 on 2025-01-08 11:12 | ||
|
||
from django.db import migrations, models | ||
import openklant.utils.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("klantinteracties", "0023_alter_digitaaladres_omschrijving"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="betrokkene", | ||
name="bezoekadres_nummeraanduiding_id", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Identificatie van het adres bij de Basisregistratie Adressen en Gebouwen.", | ||
max_length=16, | ||
validators=[ | ||
openklant.utils.validators.CustomRegexValidator( | ||
message="Ongeldige nummeraanduiding BAG-ID", regex="^[0-9]{16}$" | ||
) | ||
], | ||
verbose_name="nummeraanduiding ID", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="betrokkene", | ||
name="correspondentieadres_nummeraanduiding_id", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Identificatie van het adres bij de Basisregistratie Adressen en Gebouwen.", | ||
max_length=16, | ||
validators=[ | ||
openklant.utils.validators.CustomRegexValidator( | ||
message="Ongeldige nummeraanduiding BAG-ID", regex="^[0-9]{16}$" | ||
) | ||
], | ||
verbose_name="nummeraanduiding ID", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="partij", | ||
name="bezoekadres_nummeraanduiding_id", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Identificatie van het adres bij de Basisregistratie Adressen en Gebouwen.", | ||
max_length=16, | ||
validators=[ | ||
openklant.utils.validators.CustomRegexValidator( | ||
message="Ongeldige nummeraanduiding BAG-ID", regex="^[0-9]{16}$" | ||
) | ||
], | ||
verbose_name="nummeraanduiding ID", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="partij", | ||
name="correspondentieadres_nummeraanduiding_id", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Identificatie van het adres bij de Basisregistratie Adressen en Gebouwen.", | ||
max_length=16, | ||
validators=[ | ||
openklant.utils.validators.CustomRegexValidator( | ||
message="Ongeldige nummeraanduiding BAG-ID", regex="^[0-9]{16}$" | ||
) | ||
], | ||
verbose_name="nummeraanduiding ID", | ||
), | ||
), | ||
] |
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