#11310: Unable to serialize ManyToMany fields with "trough"
------------------------------------------+---------------------------------
 Reporter:  Pavel Schön <pa...@schon.cz>  |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Uncategorized                 |     Version:  1.0       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 Problem is, that ManyToMany field with intermediate table is ignored in
 PythonSerializer. This patch should fix it.

 {{{
 
http://code.djangoproject.com/svn/django/trunk/django/core/serializers/python.py
 59,61c59,60
 <         if field.creates_table:
 <             self._current[field.name] =
 [smart_unicode(related._get_pk_val(), strings_only=True)
 <                                for related in getattr(obj,
 field.name).iterator()]
 ---
 >         self._current[field.name] =
 [smart_unicode(related._get_pk_val(), strings_only=True)
 >             for related in getattr(obj, field.name).iterator()]
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11310>
Django <http://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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to