Skip to content

Commit 3d2e335

Browse files
authored
Fix typos (#4268)
1 parent c822e26 commit 3d2e335

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

hypha/apply/api/v1/review/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def update(self, instance, validated_data):
5656
)
5757
instance.is_draft = self.validated_data.get("is_draft", False)
5858

59-
# Old review forms do not have the requred visability field.
59+
# Old review forms do not have the required visibility field.
6060
# This will set visibility to PRIVATE by default.
6161
try:
6262
instance.visibility = self.validated_data[instance.visibility_field.id]

hypha/apply/projects/templates/application_projects/report_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h4>{% trans "Public Report" %}</h4>
3737

3838
{% for file in object.current.files.all %}
3939
{% if forloop.first %}
40-
<h4>{% trans "Attachements" %}</h4>
40+
<h4>{% trans "Attachments" %}</h4>
4141
<ul>
4242
{% endif %}
4343

hypha/apply/review/blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
RATE_CHOICES,
1414
RATE_CHOICES_DICT,
1515
RECOMMENDATION_CHOICES,
16-
VISIBILILTY_HELP_TEXT,
1716
VISIBILITY,
17+
VISIBILITY_HELP_TEXT,
1818
)
1919
from hypha.apply.stream_forms.blocks import (
2020
CharFieldBlock,
@@ -157,7 +157,7 @@ def get_field_kwargs(self, struct_value):
157157
kwargs["help_text"] = mark_safe(
158158
"<br>".join(
159159
[
160-
VISIBILITY[choice] + ": " + VISIBILILTY_HELP_TEXT[choice]
160+
VISIBILITY[choice] + ": " + VISIBILITY_HELP_TEXT[choice]
161161
for choice in VISIBILITY
162162
]
163163
)

hypha/apply/review/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def save(self, commit=True):
7070
self.cleaned_data[self.instance.recommendation_field.id]
7171
)
7272
self.instance.is_draft = self.draft_button_name in self.data
73-
# Old review forms do not have the requred visability field.
73+
# Old review forms do not have the required visibility field.
7474
# This will set visibility to PRIVATE by default.
7575
try:
7676
self.instance.visibility = self.cleaned_data[

hypha/apply/review/management/commands/migration_review_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def handle(self, *args, **options):
8787
with options["source"] as json_data:
8888
self.data = json.load(json_data)
8989

90-
# A user can only submitt a single review in the new system so pick the latest one.
90+
# A user can only submit a single review in the new system so pick the latest one.
9191
blacklist = {
9292
"7574",
9393
"7413",

hypha/apply/review/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
PRIVATE = "private"
3737
REVIEWER = "reviewers"
3838

39-
VISIBILILTY_HELP_TEXT = {
39+
VISIBILITY_HELP_TEXT = {
4040
PRIVATE: _("Visible only to staff."),
4141
REVIEWER: _("Visible to other reviewers and staff."),
4242
}

hypha/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
CONN_HEALTH_CHECKS = env.bool("CONN_HEALTH_CHECKS", True)
184184

185185
# Language code in standard language id format: en, en-gb, en-us
186-
# The corrosponding locale dir is named: en, en_GB, en_US
186+
# The corresponding locale dir is named: en, en_GB, en_US
187187
LANGUAGE_CODE = env.str("LANGUAGE_CODE", "en")
188188

189189
# Machine translation settings

0 commit comments

Comments
 (0)