Skip to content

Commit

Permalink
[#309] Migrations.RunPython.noop
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Feb 11, 2025
1 parent 72135bf commit 5ee0cb4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ class Migration(migrations.Migration):
verbose_name="straatnaam",
),
),
migrations.RunPython(handle_null_values),
migrations.RunPython(
code=handle_null_values,
reverse_code=migrations.RunPython.noop,
),
migrations.AlterField(
model_name="organisatie",
name="adres_huisnummer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class KlantContactDataFactory(factory.DictFactory):
class BezoekAdresDataFactory(factory.DictFactory):
nummeraanduidingId = "1234567890000001"
straatnaam = "straat"
huisnummer = 10
huisnummer = "10"
huisnummertoevoeging = "A2"
postcode = "1008DG"
stad = "Amsterdam"
Expand All @@ -28,7 +28,7 @@ class BezoekAdresDataFactory(factory.DictFactory):
class CorrespondentieAdresDataFactory(factory.DictFactory):
nummeraanduidingId = "1234567890000002"
straatnaam = "straat"
huisnummer = 10
huisnummer = "10"
huisnummertoevoeging = "A2"
postcode = "1008DG"
stad = "Amsterdam"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def test_update_betrokkene(self):
partij=partij,
bezoekadres_nummeraanduiding_id="1234567890000001",
bezoekadres_straatnaam="straat",
bezoekadres_huisnummer=10,
bezoekadres_huisnummer="10",
bezoekadres_huisnummertoevoeging="A2",
bezoekadres_postcode="1008DG",
bezoekadres_stad="Amsterdam",
Expand All @@ -607,7 +607,7 @@ def test_update_betrokkene(self):
bezoekadres_land="NL",
correspondentieadres_nummeraanduiding_id="1234567890000002",
correspondentieadres_straatnaam="straat",
correspondentieadres_huisnummer=10,
correspondentieadres_huisnummer="10",
correspondentieadres_huisnummertoevoeging="A2",
correspondentieadres_postcode="1008DG",
correspondentieadres_stad="Amsterdam",
Expand Down Expand Up @@ -774,7 +774,7 @@ def test_partial_update_betrokkene(self):
partij=partij,
bezoekadres_nummeraanduiding_id="1234567890000001",
bezoekadres_straatnaam="straat",
bezoekadres_huisnummer=10,
bezoekadres_huisnummer="10",
bezoekadres_huisnummertoevoeging="A2",
bezoekadres_postcode="1008DG",
bezoekadres_stad="Amsterdam",
Expand All @@ -784,7 +784,7 @@ def test_partial_update_betrokkene(self):
bezoekadres_land="NL",
correspondentieadres_nummeraanduiding_id="1234567890000002",
correspondentieadres_straatnaam="straat",
correspondentieadres_huisnummer=10,
correspondentieadres_huisnummer="10",
correspondentieadres_huisnummertoevoeging="A2",
correspondentieadres_postcode="1008DG",
correspondentieadres_stad="Amsterdam",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ class Migration(migrations.Migration):
verbose_name="straatnaam",
),
),
migrations.RunPython(handle_null_values),
migrations.RunPython(
code=handle_null_values,
reverse_code=migrations.RunPython.noop,
),
migrations.AlterField(
model_name="betrokkene",
name="bezoekadres_huisnummer",
Expand Down

0 comments on commit 5ee0cb4

Please sign in to comment.