Skip to content

Commit 01e5227

Browse files
Gender-neutral language (OSMCha#741)
* Update views.py * Update test_changeset_views.py
1 parent 2087b98 commit 01e5227

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

osmchadjango/changeset/tests/test_changeset_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def test_set_good_changeset_unlogged(self):
759759
self.assertIsNone(self.changeset.check_date)
760760

761761
def test_set_harmful_changeset_not_allowed(self):
762-
"""User can't mark his own changeset as harmful."""
762+
"""User can't mark their own changeset as harmful."""
763763
self.client.login(username=self.user.username, password='password')
764764
response = self.client.put(
765765
reverse('changeset:set-harmful', args=[self.changeset])
@@ -772,7 +772,7 @@ def test_set_harmful_changeset_not_allowed(self):
772772
self.assertIsNone(self.changeset.check_date)
773773

774774
def test_set_good_changeset_not_allowed(self):
775-
"""User can't mark his own changeset as good."""
775+
"""User can't mark their own changeset as good."""
776776
self.client.login(username=self.user.username, password='password')
777777
response = self.client.put(
778778
reverse('changeset:set-good', args=[self.changeset])

osmchadjango/changeset/views.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def add_reviewed_feature(self, type, id, harmful):
247247

248248
if changeset.uid in self.request.user.social_auth.values_list('uid', flat=True):
249249
return Response(
250-
{'detail': 'User can not check features on his own changeset.'},
250+
{'detail': 'User can not check features on their own changeset.'},
251251
status=status.HTTP_403_FORBIDDEN
252252
)
253253

@@ -279,7 +279,7 @@ def remove_harmful_feature(self, request, pk, type, id):
279279

280280
if changeset.uid in self.request.user.social_auth.values_list('uid', flat=True):
281281
return Response(
282-
{'detail': 'User can not check features on his own changeset.'},
282+
{'detail': 'User can not check features on their own changeset.'},
283283
status=status.HTTP_403_FORBIDDEN
284284
)
285285

@@ -343,7 +343,7 @@ def set_harmful(self, request, pk):
343343
)
344344
if changeset.uid in request.user.social_auth.values_list('uid', flat=True):
345345
return Response(
346-
{'detail': 'User can not check his own changeset.'},
346+
{'detail': 'User can not check their own changeset.'},
347347
status=status.HTTP_403_FORBIDDEN
348348
)
349349
if request.data:
@@ -372,7 +372,7 @@ def set_good(self, request, pk):
372372
)
373373
if changeset.uid in request.user.social_auth.values_list('uid', flat=True):
374374
return Response(
375-
{'detail': 'User can not check his own changeset.'},
375+
{'detail': 'User can not check their own changeset.'},
376376
status=status.HTTP_403_FORBIDDEN
377377
)
378378
if request.data:
@@ -440,7 +440,7 @@ def add_tag(self, request, pk, tag_pk):
440440

441441
if changeset.uid in request.user.social_auth.values_list('uid', flat=True):
442442
return Response(
443-
{'detail': 'User can not add tags to his own changeset.'},
443+
{'detail': 'User can not add tags to their own changeset.'},
444444
status=status.HTTP_403_FORBIDDEN
445445
)
446446
if changeset.checked and (
@@ -468,7 +468,7 @@ def remove_tag(self, request, pk, tag_pk):
468468

469469
if changeset.uid in request.user.social_auth.values_list('uid', flat=True):
470470
return Response(
471-
{'detail': 'User can not remove tags from his own changeset.'},
471+
{'detail': 'User can not remove tags from their own changeset.'},
472472
status=status.HTTP_403_FORBIDDEN
473473
)
474474
if changeset.checked and (

0 commit comments

Comments
 (0)