mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-09 06:18:05 +00:00
web/postkey/models.py: add __unicode__() method
This commit is contained in:
parent
fd210c6fe3
commit
5145fba180
@ -8,3 +8,6 @@ class i2phost(models.Model):
|
|||||||
description = models.TextField("Description", blank=True)
|
description = models.TextField("Description", blank=True)
|
||||||
date_added = models.DateTimeField(auto_now_add=True)
|
date_added = models.DateTimeField(auto_now_add=True)
|
||||||
activated = models.BooleanField(default=False)
|
activated = models.BooleanField(default=False)
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.name
|
||||||
|
Loading…
Reference in New Issue
Block a user