From 7618cf39004836ee8690a632ba94f0836f6d4e56 Mon Sep 17 00:00:00 2001 From: onno Date: Tue, 29 Oct 2024 16:18:45 +0100 Subject: [PATCH] tips page for handeling snippets and synchronization on or off --- docs/how-to/tips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how-to/tips.md b/docs/how-to/tips.md index 3e524871..02027593 100644 --- a/docs/how-to/tips.md +++ b/docs/how-to/tips.md @@ -14,6 +14,6 @@ def get_something(request, tag): default_tag = tag.get_translation(tag.get_default_locale()) pages = SomePage.objects.live().filter( Q(locale__language_code=lang), - Q(category__tags=default_tag) | Q(category__tags=tag) + Q(tags=default_tag) | Q(tags=tag) ).distinct() ```