Fix unrecognized orderby not using the warning bag.

This commit is contained in:
voussoir 2017-09-23 11:08:19 -07:00
parent 557f78eb02
commit 163e960bfa

View file

@ -629,7 +629,8 @@ class PDBPhotoMixin:
searchhelpers.minmax('bytes', bytes, minimums, maximums, warning_bag=warning_bag)
searchhelpers.minmax('duration', duration, minimums, maximums, warning_bag=warning_bag)
orderby = searchhelpers.normalize_orderby(orderby)
orderby = searchhelpers.normalize_orderby(orderby, warning_bag=warning_bag)
notnulls = set()
if extension or mimetype:
notnulls.add('extension')