def pixel_show(request, pixel): dajax = Dajax() r = views.pixel(request, 'show', pixel) dajax.assign('#content', 'innerHTML', r) return dajax.json()
def pixel_list(request): dajax = Dajax() r = views.pixel(request, 'list', None) dajax.assign('#content', 'innerHTML', r) return dajax.json()