Skip to content

Commit

Permalink
feat: filter on meeting type (#5994)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Jul 19, 2023
1 parent fdb036e commit 5cc63af
Showing 1 changed file with 8 additions and 0 deletions.
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")]

0 comments on commit 5cc63af

Please sign in to comment.