Skip to content

Instantly share code, notes, and snippets.

@jaddison
Created January 8, 2013 17:46
Show Gist options
  • Save jaddison/4485991 to your computer and use it in GitHub Desktop.
Save jaddison/4485991 to your computer and use it in GitHub Desktop.
django-simple-templates example assignment tag for use in simple page templates.
from django import template
from users.forms import EmailSignupForm
register = template.Library()
@register.assignment_tag
def get_signup_form():
return EmailSignupForm()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment