Skip to content

Commit

Permalink
Merge "Use Query.column_descriptions instead of private property"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Dec 7, 2016
2 parents 9a541f0 + 1ef552a commit ea61c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neutron/services/timestamp/timestamp_db.py
Expand Up @@ -50,7 +50,7 @@ def _change_since_result_filter_hook(self, query, filters):
raise n_exc.InvalidInput(error_message=msg)
changed_since = (timeutils.
normalize_time(changed_since_string))
target_model_class = list(query._mapper_adapter_map.keys())[0]
target_model_class = query.column_descriptions[0]['type']
query = query.join(standard_attr.StandardAttribute,
target_model_class.standard_attr_id ==
standard_attr.StandardAttribute.id).filter(
Expand Down

0 comments on commit ea61c3e

Please sign in to comment.