Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
684faa41
Commit
684faa41
authored
Sep 10, 2020
by
Laury Bueno
Browse files
[Stats] Prefer present tense verbs for actions
parent
dbf817a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
courses/stats/views.py
courses/stats/views.py
+1
-1
No files found.
courses/stats/views.py
View file @
684faa41
...
@@ -58,6 +58,6 @@ class UserAccessView(views.APIView):
...
@@ -58,6 +58,6 @@ class UserAccessView(views.APIView):
return
Response
({
'error'
:
'Specified area not found'
},
status
=
status
.
HTTP_404_NOT_FOUND
)
return
Response
({
'error'
:
'Specified area not found'
},
status
=
status
.
HTTP_404_NOT_FOUND
)
# Save the action
# Save the action
action
.
send
(
request
.
user
,
verb
=
'access
ed
'
,
action_object
=
action_object
)
action
.
send
(
request
.
user
,
verb
=
'access'
,
action_object
=
action_object
)
return
Response
(
None
,
status
=
status
.
HTTP_201_CREATED
)
return
Response
(
None
,
status
=
status
.
HTTP_201_CREATED
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment