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
c7ff8611
Commit
c7ff8611
authored
Sep 28, 2020
by
Matheus Miranda
Browse files
Fix ordering for actor actions
parent
31b57699
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
courses/reports/views.py
courses/reports/views.py
+1
-1
No files found.
README.md
View file @
c7ff8611
...
...
@@ -39,7 +39,7 @@ Its possible to log `user-access` by sending a POST request to `/api/stats/user-
Note: available areas must be created via Django Admin previously:
`<HOST>/django/admin/stats/accessiblearea/`
To log generic activities, send a POST request to
`/api/user-actions/`
.
To log generic activities, send a POST request to
`/api/
stats/
user-actions/`
.
```
json
{
"verb"
:
"created comment"
,
...
...
courses/reports/views.py
View file @
c7ff8611
...
...
@@ -356,7 +356,7 @@ class UserAccessView(views.APIView):
user_id
=
request
.
GET
[
'user'
]
user
=
User
.
objects
.
get
(
id
=
user_id
)
actions
=
user
.
actor_actions
.
all
()
actions
=
user
.
actor_actions
.
all
()
.
order_by
(
'timestamp'
)
last_login
=
''
last_access
=
''
...
...
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