wapi icon indicating copy to clipboard operation
wapi copied to clipboard

Serializer return queryset class name insted of object class name

Open dvinegla opened this issue 16 years ago • 0 comments

serializer return

<objects>
    <queryset>
        <field1></field1>
    </queryset>
    <queryset>
        <field1></field1>
    </queryset>
<objects>

instead of

<objects>
    <objectname>
        <field1></field1>
    </objectname>
    <objectname>
        <field1></field1>
    </objectname>
<objects>

I think the error is in serializers/init.py

156 - fmt.format_list([get_object_serialization(objs, method).apply(obj, *_kwargs) for obj in objs]) 156 + fmt.format_list([get_object_serialization(obj, method).apply(obj, *_kwargs) for obj in objs])

( objs => obj )

dvinegla avatar Aug 20 '09 12:08 dvinegla