show text info

This commit is contained in:
j 2021-10-11 14:50:19 +01:00
commit f211375bbe
3 changed files with 24 additions and 7 deletions

View file

@ -52,5 +52,7 @@ class Text(models.Model):
def json(self):
data = {}
data['title'] = self.title
data['byline'] = self.byline
data['body'] = self.body
data.update(self.data)
return json.dumps(data)