From 5bda2ad89643757edd86f3780fc965019bdfa33f Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 23 Aug 2011 20:58:01 +0530 Subject: [PATCH] ups, short_description, not description for list_display column headers --- gazetteer/places/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gazetteer/places/models.py b/gazetteer/places/models.py index e37b955..828aa87 100644 --- a/gazetteer/places/models.py +++ b/gazetteer/places/models.py @@ -30,7 +30,7 @@ class Feature(models.Model): def feature_type_name(self): return "%s: %s" % (self.feature_type.code, self.feature_type.name,) - feature_type_name.description = "Feature Type" + feature_type_name.short_description = "Feature Type" def time_start(self): tf = self.time_frame @@ -38,7 +38,7 @@ class Feature(models.Model): return str(tf.start_date) else: return '' - time_start.description = "Start Date" + time_start.short_description = "Start Date" def time_end(self): tf = self.time_frame @@ -46,7 +46,7 @@ class Feature(models.Model): return str(tf.end_sate) else: return '' - time_end.description = "End Date" + time_end.short_description = "End Date" LANGUAGE_CHOICES = (