Skip to content

Error when filtering courses: Cannot resolve keyword 'status' into field #576

@skanbedoui

Description

@skanbedoui

Description:
When applying filters on the course selection page and clicking "Apply Filter", the site displays an error page. The server logs show the following traceback:

django.core.exceptions.FieldError: Cannot resolve keyword 'status' into field. Choices are: attendances, cart_items, completed_by, course, course_id, created_at, description, enable_rollover, end_time, enrollments, id, is_rolled_over, is_virtual, latitude, location, longitude, materials, meeting_id, meeting_link, original_end_time, original_start_time, payments, price, rollover_pattern, start_time, teacher_confirmed, teaching_style, title, updated_at

Steps to Reproduce:

Go to the course selection page.
Choose a course and click "Apply Filter".
Observe the error page.
Expected Behavior:
The page should filter courses and display results without error.

Actual Behavior:
An error page is shown, and the logs indicate a FieldError due to an invalid filter on the status field.

Image

Image

Additional Context:
This bug prevents users from filtering courses and needs to be fixed to restore functionality.

Fix found ✅

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions