Last active
October 4, 2015 21:57
-
-
Save eos87/2705553 to your computer and use it in GitHub Desktop.
Fullcalendar json response example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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