fixed small inconsistency in returning a single script from the manager.

This commit is contained in:
Griatch 2015-03-06 20:54:44 +01:00
parent 84ccbf6b86
commit a6c2910e93
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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):
"""