Yes, further digging into the code, I found that out too. So moving
the call a few lines up in my urls.py did the trick.
This because you should not have conditionnal fields inside the
FormAdmin class declaration, as the class declaration will be
only evaluated only once. If you want to add/remove fields
dynamically you must override the FormAdmin class __init__()
method.
I guess a little warning in the doc could help. I'm not very pleased
with the overriding __init__() thing, but it does work, I did that for
the
app i'm trying to integrate, which has forms that cope with
polymorphic
models. The code is a bit ugly and not so DRY in the end but it works.
Cheers.