Skip to content

Instantly share code, notes, and snippets.

@eos87
Last active October 4, 2015 21:57
Show Gist options
  • Save eos87/2705553 to your computer and use it in GitHub Desktop.
Save eos87/2705553 to your computer and use it in GitHub Desktop.
Fullcalendar json response example
for evento in eventos:
d = {
'id': str(evento.id),
'title': str(evento.evento),
'start':str(evento.inicio),
'end':str(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