Skip to content

Commit ae6b394

Browse files
committed
Updated API resources for MeetingRegistration.
- Legacy-Id: 17961
1 parent 567449d commit ae6b394

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ietf/stats/resources.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ class Meta:
5757
}
5858
api.stats.register(AffiliationAliasResource())
5959

60+
from ietf.meeting.resources import MeetingResource
61+
from ietf.person.resources import PersonResource
6062
class MeetingRegistrationResource(ModelResource):
63+
meeting = ToOneField(MeetingResource, 'meeting')
64+
person = ToOneField(PersonResource, 'person', null=True)
6165
class Meta:
6266
queryset = MeetingRegistration.objects.all()
6367
serializer = api.Serializer()
@@ -66,13 +70,15 @@ class Meta:
6670
ordering = ['id', ]
6771
filtering = {
6872
"id": ALL,
69-
"meeting": ALL_WITH_RELATIONS,
7073
"first_name": ALL,
7174
"last_name": ALL,
7275
"affiliation": ALL,
7376
"country_code": ALL,
7477
"email": ALL,
75-
"person": ALL_WITH_RELATIONS
78+
"reg_type": ALL,
79+
"ticket_type": ALL,
80+
"attended": ALL,
81+
"meeting": ALL_WITH_RELATIONS,
82+
"person": ALL_WITH_RELATIONS,
7683
}
7784
api.stats.register(MeetingRegistrationResource())
78-

0 commit comments

Comments
 (0)