diff --git a/beat/web/common/utils.py b/beat/web/common/utils.py index 127378d8e8847addbfc065a2ff4c8ca748263073..785a93f4699263e77727418e6573badc1752f5cb 100644 --- a/beat/web/common/utils.py +++ b/beat/web/common/utils.py @@ -149,13 +149,13 @@ def py3_cmp(a, b): return (a > b) - (a < b) -def annotate_full_name(db_class): +def annotate_full_name(query): """ Annotate a query with the asset full name so that it can be more easily filtered. """ - return db_class.objects.annotate( + return query.annotate( full_name=Concat( "author__username", V("/"),