#11310: Unable to serialize ManyToMany fields with "trough"
---------------------------------------------------+------------------------
          Reporter:  Pavel Schön <pa...@schon.cz>  |         Owner:  nobody    
            Status:  closed                        |     Milestone:            
         Component:  Serialization                 |       Version:  SVN       
        Resolution:  worksforme                    |      Keywords:  ManyToMany
             Stage:  Unreviewed                    |     Has_patch:  1         
        Needs_docs:  0                             |   Needs_tests:  0         
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by russellm):

  * status:  reopened => closed
  * resolution:  => worksforme

Comment:

 Your example code is explicitly serializing objects of type A. However,
 when you have a through relationship, you need to serialize the A_B model
 separately, since that model could contain extra data.

 When you don't have a through model, there isn't an actual model
 representing the through relationship., so the m2m data is included on the
 A model as a list of related objects.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11310#comment:4>
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