From 0f0b6cd415e82c81e4303d43d62d5ce5d8cff4d9 Mon Sep 17 00:00:00 2001 From: Mauro MSL Date: Thu, 10 Oct 2024 15:02:43 +0100 Subject: [PATCH] #4449: Avoid changing return type of method --- src/core/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/views.py b/src/core/views.py index 49f74e260..2b3812f82 100755 --- a/src/core/views.py +++ b/src/core/views.py @@ -8,6 +8,7 @@ import json import pytz import time +import warnings from django.contrib import messages from django.contrib.admin.views.decorators import staff_member_required @@ -2580,7 +2581,11 @@ def get_facets(self): def get_facet_queryset(self): # This method is deprecated. - return None + warnings.warn( + ".get_facet_queryset() is deprecated and will" + " be removed. Use .get_queryset instead" + ) + return self.get_queryset() def get_actions(self): return []