Browse Source

web/postkey/models.py: add __unicode__() method

pull/1/head
Hidden Z 14 years ago
parent
commit
5145fba180
  1. 3
      web/postkey/models.py

3
web/postkey/models.py

@ -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…
Cancel
Save