Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sage Validation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
Sage Validation
Merge requests
!4
Feature/activity log
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/activity log
feature/activity-log
into
develop
Overview
0
Commits
10
Pipelines
0
Changes
4
Merged
Neda Moeini
requested to merge
feature/activity-log
into
develop
3 weeks ago
Overview
0
Commits
10
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Viewing commit
94e13f8e
Prev
Next
Show latest version
4 files
+
18
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
94e13f8e
Make linter happy.
· 94e13f8e
Neda Moeini
authored
3 weeks ago
sage_validation/accounts/admin.py
+
7
−
2
Options
"""
Admin configuration for the UserActivityLog model.
"""
from
django.contrib
import
admin
from
.models
import
UserActivityLog
from
sage_validation.accounts.models
import
UserActivityLog
@admin.register
(
UserActivityLog
)
class
UserActivityLogAdmin
(
admin
.
ModelAdmin
):
"""
Admin configuration for the UserActivityLog model.
"""
list_display
=
(
"
user
"
,
"
action
"
,
"
name
"
,
"
input_file_hash
"
,
"
output_file_hash
"
,
"
timestamp
"
)
search_fields
=
(
"
user__username
"
,
"
name
"
,
"
action
"
)
list_filter
=
(
"
action
"
,
"
timestamp
"
)
\ No newline at end of file
list_filter
=
(
"
action
"
,
"
timestamp
"
)
Loading