Added auto-conversion of typeclass to dbobj in ObjectDB.contents_get()

This commit is contained in:
Griatch 2014-09-30 12:31:44 +02:00
parent 0efc371775
commit 348ff0b5f4

View file

@ -325,6 +325,7 @@ class ObjectDB(TypedObject):
exclude is one or more objects to not return
"""
if exclude:
exclude = [obj.dbobj for obj in make_iter(exclude)]
return ObjectDB.objects.get_contents(self, excludeobj=exclude)
return ObjectDB.objects.get_contents(self)
contents = property(contents_get)