Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: filter on meeting type #5994

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ietf/meeting/types.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# Copyright The IETF Trust 2023, All Rights Reserved
from typing import TYPE_CHECKING, Annotated

import strawberry
from strawberry import auto

from . import models

if TYPE_CHECKING:
from ietf.name.types import MeetingTypeName

@strawberry.django.filters.filter(models.Meeting)
class MeetingFilter:
number: auto
city: auto
type: auto

@strawberry.django.type(
models.Meeting,
Expand All @@ -15,3 +22,4 @@ class Meeting:
id: auto
number: auto
city: auto
type: Annotated["MeetingTypeName", strawberry.lazy("ietf.name.types")]