Fix #307 -- Log sent emails

This commit is contained in:
FlaviaBastos
2016-12-03 12:41:34 -07:00
committed by Raphael Michel
parent adbe966d85
commit cf334e2b48
7 changed files with 133 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
import json
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
@@ -124,3 +125,7 @@ class LogEntry(models.Model):
return a_text
else:
return ''
@cached_property
def parsed_data(self):
return json.loads(self.data)