Skip to content
Snippets Groups Projects
Commit 1ca9e63b authored by Mattia Mancini's avatar Mattia Mancini
Browse files

OSB-28: fix of the ActionLog object

parent c0a5d319
No related branches found
No related tags found
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
...@@ -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)
...@@ -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__'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment