Skip to content

Instantly share code, notes, and snippets.

@whatisjasongoldstein
Created May 6, 2013 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatisjasongoldstein/5525444 to your computer and use it in GitHub Desktop.
Save whatisjasongoldstein/5525444 to your computer and use it in GitHub Desktop.
Assignment tag, really simple
{% get_blocks_for campaign 'area' as foo %}
@register.assignment_tag
def get_blocks_for_campaign(campaign, area):
return campaign.whatever_dict.get(area)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment