bugfix: query results failed due to using mutable list initiation
[releng.git] / utils / test / result_collection_api / resources / project_models.py
index a1592c3..1dc0c40 100644 (file)
@@ -71,10 +71,11 @@ class Project(object):
 @swagger.model()
 class Projects(object):
     """
+        @property projects:
         @ptype projects: C{list} of L{Project}
     """
-    def __init__(self, projects=list()):
-        self.projects = projects
+    def __init__(self):
+        self.projects = list()
 
     @staticmethod
     def from_dict(res_dict):