coderedcorp / coderedcorp/coderedcms

Filtering Events in wagtailCRX Fails

Ouverte
#706 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Type: Bug
Langage dominant
Python
Étoiles
765
Forks
154
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

#### Describe the bug
Filtering Events in wagtailCRX Fails

#### Steps to reproduce
Steps to reproduce the behavior:
1. Create a classifier and populate it with classifier terms (In my case Deejee populated with the names of dj's)
2. Create an events landing page. and check under Filter child pages by: the classifier(s) you like to filter on. (in my case Deejee)
3. Add a few events and classify the events with different classifier terms. (in my case each event is classified with the Dejee>name_of_deejee)
4. Open the events landing page live view
5. Go to Filter selector and choice the classifier term you like to filter on and click Filter
6.In the log get the error:

"Tried to filter by ClassifierTerm in PageListBlock, but .get_index_children() did not return a queryset or is not a queryset of CoderedPage models.

7. I expected to see only the get the events with the selected dj but it gives back all events.

#### Additional context
I tried the same with the article landing page and there it works fine.

Django version 5.2.6
Wagtail version 7.71
Codered 6.0.0

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Reproduisez le problème avec les versions indiquées de Django, Wagtail et CodeRed, puis examinez le chemin de filtrage de la page d’accueil des événements et le comportement de get_index_children(). Comparez-le à la page d’accueil des articles, où le filtrage fonctionne ; le travail est considéré comme terminé lorsqu’un terme de classificateur sélectionné n’affiche que les événements correspondants, sans l’erreur enregistrée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
django, python
Domaine
backend, content
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.