#21087: "datatime" objects can not be JSON-serialized to be held in sessions
--------------------------------------+--------------------
     Reporter:  epandurski@…          |      Owner:  nobody
         Type:  Bug                   |     Status:  new
    Component:  Core (Serialization)  |    Version:  master
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 I am using Django 1.6 beta 3.

 In my view I try:
 {{{
 now = datetime.datetime.now(pytz.utc)
 request.session['lstts'] = now
 }}}
 But I get the following error: http://dpaste.com/hold/1375033/

 I presume the reason is the new serializer for session objects. I also
 presume that "datatime" objects must be supported, because they are quite
 useful and used.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21087>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.8f55f3ea9244e5169dfc41037cf848b6%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to