mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 05:57:16 +02:00
Added Tag inlines in for ObjectDB admin. Fixed issue with tag addition.
This commit is contained in:
parent
b0bf60cda4
commit
1da88deb93
2 changed files with 11 additions and 5 deletions
|
|
@ -97,7 +97,7 @@ class Attribute(SharedMemoryModel):
|
|||
# Attribute Database Model setup
|
||||
#
|
||||
# These database fields are all set using their corresponding properties,
|
||||
# named same as the field, but withtout the db_* prefix.
|
||||
# named same as the field, but without the db_* prefix.
|
||||
db_key = models.CharField('key', max_length=255, db_index=True)
|
||||
# access through the value property
|
||||
db_value = PickledObjectField('value', null=True)
|
||||
|
|
@ -367,7 +367,7 @@ class TagHandler(object):
|
|||
"Add a new tag to the handler"
|
||||
for tag in make_iter(tag):
|
||||
tag = tag.strip().lower() if tag!=None else None
|
||||
category = "%s%s" % (self.prefix, category.strip.lower()) if category!=None else None
|
||||
category = "%s%s" % (self.prefix, category.strip().lower()) if category!=None else None
|
||||
data = str(data) if data!=None else None
|
||||
# this will only create tag if no matches existed beforehand (it will overload
|
||||
# data on an existing tag since that is not considered part of making the tag unique)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue