ups, short_description, not description for list_display column headers

This commit is contained in:
Sanj 2011-08-23 20:58:01 +05:30
parent 9697290f95
commit 5bda2ad896

View File

@ -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 = (