coderedcorp / coderedcorp/coderedcms

Filtering Events in wagtailCRX Fails

オープン
#706 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Type: Bug
主要言語
Python
スター
765
フォーク
154
PR マージ指標
30日以内にマージされた PR はありません

説明

#### 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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

記載されている Django、Wagtail、CodeRed のバージョンで問題を再現し、その後、イベントランディングページのフィルタリング経路と get_index_children() の動作を調査してください。フィルタリングが機能する記事ランディングページと比較してください。分類子の用語を選択すると、記録されたエラーが発生せず、一致するイベントだけが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
django, python
領域
backend, content
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。