Skip to content

Commit

Permalink
[#2351] Remove comments in ProjectEditorValidation
Browse files Browse the repository at this point in the history
Remove commented references to read-only fields in ProjectEditorValidation.

Also small edit in project_editor.py
  • Loading branch information
zzgvh authored and punchagan committed Sep 19, 2016
1 parent 8163b11 commit 1611399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions akvo/rsr/models/project_editor_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ class ProjectEditorValidation(Model):
"""
MANDATORY_ACTION = 1
HIDDEN_ACTION = 2
# READ_ONLY_ACTION = 3

ACTIONS_LIST = [MANDATORY_ACTION, HIDDEN_ACTION,]# READ_ONLY_ACTION]
ACTIONS_LIST = [MANDATORY_ACTION, HIDDEN_ACTION,]

ACTIONS_LABELS = [
_(u'Mandatory'),
_(u'Hidden'),
# _(u'Read only'),
]

ACTIONS = zip(ACTIONS_LIST, ACTIONS_LABELS)
Expand Down
2 changes: 1 addition & 1 deletion akvo/rsr/templatetags/project_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def mandatory_or_hidden(validations, field):
"""
Retrieves the mandatory and hidden fields for project editor validations.
:returns A string on the form mandatory-{validation ID} and/or hidden-{validation_ID}
:returns A string of the form mandatory-{validation ID} and/or hidden-{validation_ID}
"""
indications = ''

Expand Down

0 comments on commit 1611399

Please sign in to comment.