silly, get_good_description
This commit is contained in:
parent
c7dcd5343f
commit
cb377fa8b5
|
@ -87,9 +87,9 @@ class Good(models.Model):
|
||||||
value = models.IntegerField(max_length=20, null=True)
|
value = models.IntegerField(max_length=20, null=True)
|
||||||
|
|
||||||
def get_description(self):
|
def get_description(self):
|
||||||
if description_string_trans != '':
|
if self.description_string_trans != '':
|
||||||
return self.description_string_trans
|
return self.description_string_trans
|
||||||
if description_string != '':
|
if self.description_string != '':
|
||||||
return self.description_string
|
return self.description_string
|
||||||
else:
|
else:
|
||||||
return self.description
|
return self.description
|
||||||
|
|
Loading…
Reference in New Issue
Block a user