daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 %}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top