Refer to feature types by their names alone.

This commit is contained in:
Schuyler Erle 2011-08-31 11:16:06 +02:00
parent 6c7fee843c
commit 9906e46b71

View File

@ -57,7 +57,7 @@ class Feature(models.Model):
return self.preferred_name return self.preferred_name
def feature_type_name(self): def feature_type_name(self):
return "%s: %s" % (self.feature_type.code, self.feature_type.name,) return self.feature_type.name.title()
feature_type_name.short_description = "Feature Type" feature_type_name.short_description = "Feature Type"
def get_geojson(self): def get_geojson(self):