Minor display fix in the admin.
This commit is contained in:
parent
5835a84e20
commit
83f67ac2c4
1 changed files with 2 additions and 2 deletions
|
|
@ -49,12 +49,12 @@ class AttributeInline(admin.TabularInline):
|
||||||
def value(self, instance):
|
def value(self, instance):
|
||||||
if not instance.id:
|
if not instance.id:
|
||||||
return "Not yet set or saved."
|
return "Not yet set or saved."
|
||||||
return instance.attribute.db_value
|
return instance.attribute.value
|
||||||
|
|
||||||
def strvalue(self, instance):
|
def strvalue(self, instance):
|
||||||
if not instance.id:
|
if not instance.id:
|
||||||
return "Not yet set or saved."
|
return "Not yet set or saved."
|
||||||
return instance.attribute.db_strvalue
|
return instance.attribute.strvalue
|
||||||
|
|
||||||
|
|
||||||
class AttributeAdmin(ModelAdmin):
|
class AttributeAdmin(ModelAdmin):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue