1👍
Now that you have separated out FotosCarro
and Garantia
as their own models, I assume that Carro
can have more than one of each of these. This means your form needs to be a bit more complex. To include "subforms" for related models in the parent form, you can to use inline formsets. This will allow you to upload images for multiple FotosCarro
s and Grantia
s for a single Carro
.
Source:stackexchange.com