fixed small inconsistency in returning a single script from the manager.
This commit is contained in:
parent
84ccbf6b86
commit
a6c2910e93
2 changed files with 1 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ class ScriptDBManager(TypedObjectManager):
|
|||
script = []
|
||||
dbref = self.dbref(key)
|
||||
if dbref or dbref == 0:
|
||||
script = self.dbref_search(dbref)
|
||||
script = [self.dbref_search(dbref)]
|
||||
if not script:
|
||||
script = self.filter(db_key=key)
|
||||
return script
|
||||
|
|
|
|||
|
|
@ -74,8 +74,6 @@ def post_save(sender, instance, created, **kwargs):
|
|||
"""
|
||||
if created:
|
||||
instance.at_first_save()
|
||||
#TODO - put OOB handler here?
|
||||
|
||||
|
||||
class TypeclassBase(SharedMemoryModelBase):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue