mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 23:58:15 -05:00
adding debug toolbar
This commit is contained in:
@@ -277,6 +277,8 @@ class RecipeSearch():
|
||||
)
|
||||
|
||||
def _recently_viewed(self, num_recent=None):
|
||||
# self._queryset = self._queryset.annotate(recent=Value(0))
|
||||
# return
|
||||
if not num_recent:
|
||||
if self._sort_includes('lastviewed'):
|
||||
self._queryset = self._queryset.annotate(lastviewed=Coalesce(
|
||||
|
||||
Reference in New Issue
Block a user