ups, short_description, not description for list_display column headers
This commit is contained in:
parent
9697290f95
commit
5bda2ad896
|
@ -30,7 +30,7 @@ class Feature(models.Model):
|
||||||
|
|
||||||
def feature_type_name(self):
|
def feature_type_name(self):
|
||||||
return "%s: %s" % (self.feature_type.code, self.feature_type.name,)
|
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):
|
def time_start(self):
|
||||||
tf = self.time_frame
|
tf = self.time_frame
|
||||||
|
@ -38,7 +38,7 @@ class Feature(models.Model):
|
||||||
return str(tf.start_date)
|
return str(tf.start_date)
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
time_start.description = "Start Date"
|
time_start.short_description = "Start Date"
|
||||||
|
|
||||||
def time_end(self):
|
def time_end(self):
|
||||||
tf = self.time_frame
|
tf = self.time_frame
|
||||||
|
@ -46,7 +46,7 @@ class Feature(models.Model):
|
||||||
return str(tf.end_sate)
|
return str(tf.end_sate)
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
time_end.description = "End Date"
|
time_end.short_description = "End Date"
|
||||||
|
|
||||||
|
|
||||||
LANGUAGE_CHOICES = (
|
LANGUAGE_CHOICES = (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user