Skip to content

Commit

Permalink
Merge pull request #34964 from dimagi/ad/limit-locations-create-mobil…
Browse files Browse the repository at this point in the history
…e-worker

Hit new endpoint to limit locations when creating new mobile workers
  • Loading branch information
AddisonDunn authored Aug 13, 2024
2 parents 7366a41 + 7845b04 commit 3f78fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corehq/apps/users/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def __init__(self, project, request_user, *args, **kwargs):
location_field = crispy.Field(
'location_id',
data_bind='value: location_id',
data_query_url=reverse('location_search', args=[self.domain]),
data_query_url=reverse('location_search_has_users_only', args=[self.domain]),
)
else:
location_field = crispy.Hidden(
Expand Down

0 comments on commit 3f78fc6

Please sign in to comment.