Skip to content

Commit

Permalink
Fix language on gsr_restricted form field
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Feb 22, 2024
1 parent 5e927db commit 43f8aa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions primed/cdsa/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ class CDSAWorkspaceForm(Bootstrap5MediaFormMixin, forms.ModelForm):

gsr_restricted = forms.TypedChoiceField(
coerce=lambda x: x == "True",
choices=((True, "Primary"), (False, "Component")),
choices=((True, "Restricted"), (False, "Unrestricted")),
widget=forms.RadioSelect,
label="Sensitive data?",
label="GSR restricted?",
help_text="Indicator of whether public posting of GSRs is restricted.",
)

class Meta:
Expand Down
5 changes: 3 additions & 2 deletions primed/dbgap/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ class dbGaPWorkspaceForm(Bootstrap5MediaFormMixin, forms.ModelForm):

gsr_restricted = forms.TypedChoiceField(
coerce=lambda x: x == "True",
choices=((True, "Primary"), (False, "Component")),
choices=((True, "Restricted"), (False, "Unrestricted")),
widget=forms.RadioSelect,
label="Sensitive data?",
label="GSR restricted?",
help_text="Indicator of whether public posting of GSRs is restricted.",
)

class Meta:
Expand Down

0 comments on commit 43f8aa2

Please sign in to comment.