exported_as doesn't work with CollectionField

Bug #546324 reported by Francis J. Lacoste
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.restful
Fix Released
Undecided
Unassigned

Bug Description

You can't use the exported_as parameter when exporting a CollectionField, because the traversal code will try to get the field using schema.get(name).

Revision history for this message
Robert Collins (lifeless) wrote :

It seems to work for me (Person.all_members_prepopulated)

Revision history for this message
Leonard Richardson (leonardr) wrote :

I believe this bug has been fixed: looking at the traversal code shows that it now uses getattr(entry, name).

Changed in lazr.restful:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.