Skip to content

Instantly share code, notes, and snippets.

@joshcartme
joshcartme / gist:5130702
Last active December 14, 2015 18:39
Mezzanine Form ajax processing
# template tag
from mezzanine import template
from mezzanine.forms.forms import FormForForm
from mezzanine.pages.models import Page
register = template.Library()
@register.as_tag
def form_from_page(slug):