Skip to content

Instantly share code, notes, and snippets.

View kmlebedev's full-sized avatar
🏠
Working from home

Konstantin Lebedev kmlebedev

🏠
Working from home
View GitHub Profile
@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):