mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 21:17:17 +02:00
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):
|
||||
if not instance.id:
|
||||
return "Not yet set or saved."
|
||||
return instance.attribute.db_value
|
||||
return instance.attribute.value
|
||||
|
||||
def strvalue(self, instance):
|
||||
if not instance.id:
|
||||
return "Not yet set or saved."
|
||||
return instance.attribute.db_strvalue
|
||||
return instance.attribute.strvalue
|
||||
|
||||
|
||||
class AttributeAdmin(ModelAdmin):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue