Relationship verbose_name to Relation
This commit is contained in:
parent
da2770e1e3
commit
86b2e2f597
|
@ -196,6 +196,12 @@ class Relationship(models.Model):
|
||||||
feature2 = models.ForeignKey(Feature, related_name="feature_to")
|
feature2 = models.ForeignKey(Feature, related_name="feature_to")
|
||||||
relationship_type = models.CharField(max_length=64, choices=RELATIONSHIP_CHOICES)
|
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):
|
class Place(models.Model):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user