SHARE
TWEET

Untitled

a guest Jan 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @register.assignment_tag(takes_context=True)
  2. @register.simple_tag(takes_context=True)
  3.    
  4. @register.assignment_tag(takes_context=True)
  5. def get_items(context):
  6.     return context['obj'].items.all()
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