# HG changeset patch # User Sylvain Thénault # Date 1266252470 -3600 # Node ID 912aba7e64003c3b6cc5b526663a778b95b7cfa0 # Parent eef17cfcfa9c5548a718b6ae7a579aa28da2c379 [inlined formos] don't pop attributes from kwargs, so they end-up in cw_extra_kwargs which is then passed to the edition form diff -r eef17cfcfa9c -r 912aba7e6400 web/views/autoform.py --- a/web/views/autoform.py Mon Feb 15 15:22:01 2010 +0100 +++ b/web/views/autoform.py Mon Feb 15 17:47:50 2010 +0100 @@ -85,7 +85,10 @@ def __init__(self, *args, **kwargs): for attr in self._select_attrs: - setattr(self, attr, kwargs.pop(attr, None)) + # don't pop attributes from kwargs, so the end-up in + # self.cw_extra_kwargs which is then passed to the edition form (see + # the .form method) + setattr(self, attr, kwargs.get(attr)) super(InlineEntityEditionFormView, self).__init__(*args, **kwargs) def _entity(self):