Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
1ca9e63b
Commit
1ca9e63b
authored
6 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
OSB-28
: fix of the ActionLog object
parent
c0a5d319
No related branches found
No related tags found
2 merge requests
!89
Monitoring maintenance Epic branch merge
,
!1
Resolve OSB-13 "Monitoringmaintenance "
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LCU/Maintenance/DBInterface/monitoringdb/models/log.py
+3
-3
3 additions, 3 deletions
LCU/Maintenance/DBInterface/monitoringdb/models/log.py
LCU/Maintenance/DBInterface/monitoringdb/serializers/log.py
+1
-1
1 addition, 1 deletion
LCU/Maintenance/DBInterface/monitoringdb/serializers/log.py
with
4 additions
and
4 deletions
LCU/Maintenance/DBInterface/monitoringdb/models/log.py
+
3
−
3
View file @
1ca9e63b
...
@@ -3,7 +3,7 @@ import django.db.models as models
...
@@ -3,7 +3,7 @@ import django.db.models as models
class
ActionLog
(
models
.
Model
):
class
ActionLog
(
models
.
Model
):
entry_id
=
models
.
IntegerField
()
entry_id
=
models
.
IntegerField
()
model_name
=
models
.
CharField
(
len
=
100
)
model_name
=
models
.
CharField
(
max_length
=
100
)
who
=
models
.
CharField
(
len
=
100
)
who
=
models
.
CharField
(
max_length
=
100
)
when
=
models
.
DateTimeField
(
auto_now_add
=
True
)
when
=
models
.
DateTimeField
(
auto_now_add
=
True
)
what
=
models
.
CharField
(
len
=
1000
)
what
=
models
.
CharField
(
max_length
=
1000
)
This diff is collapsed.
Click to expand it.
LCU/Maintenance/DBInterface/monitoringdb/serializers/log.py
+
1
−
1
View file @
1ca9e63b
...
@@ -4,8 +4,8 @@ import logging
...
@@ -4,8 +4,8 @@ import logging
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
class
ActionLogSerializer
():
class
ActionLogSerializer
(
ModelSerializer
):
class
Meta
:
class
Meta
:
model
=
ActionLog
model
=
ActionLog
fields
=
'
__all__
'
fields
=
'
__all__
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment