Handling multiple query results in models.py
Bug #1421744 reported by
Devdatta Kulkarni
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Solum |
Triaged
|
Low
|
Unassigned |
Bug Description
Currently in models.py, we are using the following pattern for returning query results:
filter_
When multiple values that match the query criteria are present in a table, above will throw MultipleResults
Currently we are not catching this exception in models.py.
As an example see:
https:/
This bug is to track work that we should do to change models.py to catch and handle correct exceptions.
Changed in solum: | |
status: | New → Triaged |
Changed in solum: | |
milestone: | none → 2015.1.1 |
tags: | added: solum-conductor |
To post a comment you must log in.
An example code that needs this fix is here:
https:/ /github. com/stackforge/ solum/blob/ master/ solum/objects/ sqlalchemy/ image.py# L66