Skip to content

Commit bafb8d4

Browse files
committed
Add filtering options
1 parent 3b3c434 commit bafb8d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: api.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ class Meta:
7979
authorization = Authorization()
8080
authentication = Authentication()
8181
filtering = {
82-
'district': ALL_WITH_RELATIONS
82+
'district': ALL_WITH_RELATIONS,
83+
'managers': ALL_WITH_RELATIONS
8384
}
8485

8586
def obj_create(self, bundle, request=None, **kwargs):
@@ -228,6 +229,10 @@ class Meta:
228229
authorization = Authorization()
229230
authentication = Authentication()
230231
always_return_data = True
232+
filtering = {
233+
'member': ALL_WITH_RELATIONS,
234+
'club': ALL_WITH_RELATIONS
235+
}
231236

232237

233238
class GamePlayerRelationResource(ModelResource):

0 commit comments

Comments
 (0)