Guest User

Untitled

a guest
Jan 17th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. status = form.cleaned_data['status']
  2. start_date = form.cleaned_data['start_date']
  3. end_date = form.cleaned_data['end_date']
  4.  
  5. Jobs.objects.filter(
  6. Q(job_company=self.request.user.userprofile.user_company) |
  7. Q(job_created_on__range=[start_date, end_date]) |
  8. Q(job_created_on__gt=start_date) |
  9. Q(job_created_on__lt=end_date) |
  10. Q(job_status=status)
  11. )
Add Comment
Please, Sign In to add comment