Hi Carles. 

Supported/unsupported isn't always clear cut... if you bend it far it far 
enough maybe it's just undefined what the behaviour is. 
Certainly, adding fields based on whether the field data is itself if 
invalid is going to lead into sticky territory. When you add FormSets to 
the mix all the more so. 

My reference to DRF was just that there are attempts to narrow down 
(incorrect) calling patterns there but, given issues still come up, it's 
clear that it's not feasible to cover all cases. 

I think this is probably a usage issue really, "how do I...?", rather than 
a development question... (Thought: would adding the field in 
form_invalid() before re-rendering, then checking for that in clean() save 
the whole __init__() issue...? — I don't know: you have to play :)

Sorry I don't have an instant answer. 

Bon cap de setmana!

Carlton

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/a26ebb63-6ca5-4dbe-910a-d2126161488do%40googlegroups.com.

Reply via email to