I have a model that I'm trying to copy using the Admin's save_as (= True). If the NestedInline model has an ImageField, you get the error that the ImageField file name can't be blank - it doesn't copy from the Admin.
I can fix this for a "normal" model (no inlines, esp. no nested inlines), but I can't figure out how to intercept the formfield validator on the nested inline (and access the request) so as to "fill in" the necessary data so that all the fields are copied and things validate properly.
I can't be the first person who has run into this. Any recommendations would be greatly appreciated.
I have a model that I'm trying to copy using the Admin's save_as (= True). If the NestedInline model has an ImageField, you get the error that the ImageField file name can't be blank - it doesn't copy from the Admin.
I can fix this for a "normal" model (no inlines, esp. no nested inlines), but I can't figure out how to intercept the formfield validator on the nested inline (and access the request) so as to "fill in" the necessary data so that all the fields are copied and things validate properly.
I can't be the first person who has run into this. Any recommendations would be greatly appreciated.