From 845dc36d9947300af00ad99616fab2f73ea2c17a Mon Sep 17 00:00:00 2001 From: Sanjay Bhangar Date: Sat, 20 May 2017 18:11:15 +0530 Subject: [PATCH] add unicode method for content --- content/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/models.py b/content/models.py index d4a56cd..5c79a85 100644 --- a/content/models.py +++ b/content/models.py @@ -75,6 +75,9 @@ class Content(models.Model): view = models.IntegerField(blank=True, null=True) parentid = models.IntegerField(db_column='parentId') # Field name made lowercase. + def __unicode__(self): + return self.title + class Meta: managed = False db_table = 'content'