File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ class Meta:
5757 }
5858api .stats .register (AffiliationAliasResource ())
5959
60+ from ietf .meeting .resources import MeetingResource
61+ from ietf .person .resources import PersonResource
6062class 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 }
7784api .stats .register (MeetingRegistrationResource ())
78-
You can’t perform that action at this time.
0 commit comments