Skip to content

Commit fd69072

Browse files
Merge pull request #1688 from learning-unlimited/survey-alias
Make 'survey' and 'surveys' aliases of each other
2 parents d277e5b + 4088575 commit fd69072

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

esp/esp/program/modules/handlers/surveymanagement.py

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def surveys(self, request, tl, one, two, module, extra, prog):
9999
elif extra == 'top_classes':
100100
return top_classes(request, tl, one, two)
101101

102+
survey = surveys
103+
102104
class Meta:
103105
proxy = True
104106

esp/esp/program/modules/handlers/surveymodule.py

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def survey(self, request, tl, one, two, module, extra, prog):
116116
elif extra == 'review_single':
117117
return survey_review_single(request, tl, one, two)
118118

119+
surveys = survey
120+
119121
class Meta:
120122
proxy = True
121123

0 commit comments

Comments
 (0)