Skip to content

Commit

Permalink
#4449: Avoid changing return type of method
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromsl committed Oct 10, 2024
1 parent 2a809b6 commit 0f0b6cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 []
Expand Down

0 comments on commit 0f0b6cd

Please sign in to comment.