add unicode method for content
This commit is contained in:
parent
34f98fe480
commit
845dc36d99
|
@ -75,6 +75,9 @@ class Content(models.Model):
|
||||||
view = models.IntegerField(blank=True, null=True)
|
view = models.IntegerField(blank=True, null=True)
|
||||||
parentid = models.IntegerField(db_column='parentId') # Field name made lowercase.
|
parentid = models.IntegerField(db_column='parentId') # Field name made lowercase.
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.title
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
managed = False
|
||||||
db_table = 'content'
|
db_table = 'content'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user