Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Account:
- id, name, age, discoverable
- Friendship:
- id, requestor, acceptor (requestor and acceptor are Account IDs)
- def filter_queryset(self, queryset):
- queryset = queryset.filter(discoverable=True).all()
- return queryset
Add Comment
Please, Sign In to add comment