Skip to content

Commit

Permalink
Fix saving location instead of country
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 9, 2025
1 parent 91ca4db commit 70d52ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion temba/channels/types/android/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_claim(self, mr_mocks):
# remove our explicit country so it needs to be derived from channels
self.org.location = None
self.org.timezone = "UTC"
self.org.save(update_fields=("country", "timezone"))
self.org.save(update_fields=("location", "timezone"))

Channel.objects.all().delete()

Expand Down
2 changes: 1 addition & 1 deletion temba/orgs/tests/test_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def test_default_country(self):
# if location is set and name is valid country, that has priority
self.org.location = Location.create(osm_id="171496", name="Ecuador", level=0)
self.org.timezone = "Africa/Nairobi"
self.org.save(update_fields=("country", "timezone"))
self.org.save(update_fields=("location", "timezone"))

self.assertEqual("EC", self.org.default_country.alpha_2)

Expand Down

0 comments on commit 70d52ef

Please sign in to comment.