Skip to content

Instantly share code, notes, and snippets.

@fitoria
Forked from eos87/gist:2705553
Created May 15, 2012 22:17
Show Gist options
  • Save fitoria/2705557 to your computer and use it in GitHub Desktop.
Save fitoria/2705557 to your computer and use it in GitHub Desktop.
from django.template.defaultfilter import escape
for evento in eventos:
d = {
'id': str(evento.id),
'title': escape(evento.evento),
'start':escape(evento.inicio),
'end':escpe(evento.final),
'allDay': True,
'color':str(evento.user.userprofile.contraparte.font_color)
}
var.append(d)
return HttpResponse(simplejson.dumps(var), mimetype='application/json')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment