Guest User

Untitled

a guest
Jul 23rd, 2015
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1.     lst = Exam.objects.order_by('date')
  2.     last = []
  3.     for e in lst:
  4.         if not e.is_past:
  5.             last.append(e)
  6.         if len(last) == 6:
  7.             break
Advertisement
Add Comment
Please, Sign In to add comment