Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if request.user.is_active:
- query = {
- 'fields': fields,
- 'query': query_
- }
- else:
- query = {
- 'fields': fields,
- 'query': query_,
- 'filter': {
- 'bool': {
- 'must': {
- 'term': {"privacy": Event.PRIVACY_PUBLIC}
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement