Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1.     resultado = Resultado.objects.filter(inscricao=inscricao)
  2.     if resultado:
  3.         resultado = resultado[0]
  4.    
  5.     if Resultado.objects.filter(inscricao=inscricao).count()==1:
  6.         resultado = Resultado.objects.filter(inscricao=inscricao)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement