---------------------------------------------------------------------------
MultipleObjectsReturned Traceback (most recent call last)
<ipython-input-14-29387f2f2849> in <module>()
----> 1 lo = tresTask.getLastOutput()
2 r = lo.GET()
3 print r
/media/andrea/ssd1/tmpPyotMerge/pyot/pyot/tres/tresApp.py in getLastOutput(self)
110 def getLastOutput(self):
111 t = self.getTaskObject()
--> 112 return t.getLastOutput()
113
114 def getInputResource(self):
/media/andrea/ssd1/tmpPyotMerge/pyot/pyot/models/tres.pyc in getLastOutput(self)
344 last_output = Resource.objects.get(host=self.TResResource.host,
345 uri='/tasks/' +
--> 346 self.pf.name + '/lo')
347 return last_output
348
/media/andrea/ssd1/tmpPyotMerge/pyot/venv/local/lib/python2.7/site-packages/django/db/models/manager.pyc in manager_method(self, *args, **kwargs)
125 def create_method(name, method):
126 def manager_method(self, *args, **kwargs):
--> 127 return getattr(self.get_queryset(), name)(*args, **kwargs)
128 manager_method.__name__ = method.__name__
129 manager_method.__doc__ = method.__doc__
/media/andrea/ssd1/tmpPyotMerge/pyot/venv/local/lib/python2.7/site-packages/django/db/models/query.pyc in get(self, *args, **kwargs)
336 raise self.model.MultipleObjectsReturned(
337 "get() returned more than one %s -- it returned %s!" %
--> 338 (self.model._meta.object_name, num)
339 )
340
MultipleObjectsReturned: get() returned more than one Resource -- it returned 2!