Guest User

Untitled

a guest
Jan 18th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. wishList = WishList.objects.get(pk=20)
  2. matches = [val for val in Store.attribute_answers.all() if val in wishList.attribute_answers]
  3.  
  4. 'ManyRelatedManager' object is not iterable
  5.  
  6. matches = [val for val in Store.attribute_answers.all() if val in WishList.attribute_answers.all()]
  7.  
  8. {% for room in study.room_choice.all %}
  9. {{ room }}
  10. {% empty %}
  11. empty list!
  12. {% endfor %}
Add Comment
Please, Sign In to add comment