No error message, but I don't know how to populate the
_inline_collections property in FormWrapper. FormWrapper has a
fill_inline_collections method:
def fill_inline_collections(self):
if not self._inline_collections:
ic = []
related_objects = self.manipulator.get_related_objects()
for rel_obj in related_objects:
data = rel_obj.extract_data(self.data)
inline_collection =
InlineObjectCollection(self.manipulator, rel_obj, data,
self.error_dict)
ic.append(inline_collection)
self._inline_collections = ic
My manipulator needs to have a get_related_objects method but i'm not
really sure how to implement it. I will need the timesheetdetails
InlineObjectCollection in order to handle {% for ts_detail in
form.timesheetdetails %}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---