Relationship verbose_name to Relation

This commit is contained in:
Sanj 2011-08-31 00:33:40 +05:30
parent da2770e1e3
commit 86b2e2f597

View File

@ -196,6 +196,12 @@ class Relationship(models.Model):
feature2 = models.ForeignKey(Feature, related_name="feature_to")
relationship_type = models.CharField(max_length=64, choices=RELATIONSHIP_CHOICES)
def __unicode__(self):
return "%s: %s to %s" % (self.relationship_type, self.feature1.preferred_name, self.feature2.preferred_name,)
class Meta:
verbose_name = "Relation"
verbose_name_plural = "Relations"
'''
class Place(models.Model):