Django snippet