In this Django Doc spiega come creare un formset che consente di modificare i libri appartenenti ad un particolare autore.Django Formset senza istanza
Quello che voglio fare è: Creare un formset che ti permetta di AGGIUNGERE un nuovo libro appartenente ad un NUOVO autore ... Aggiungi il Libro ed i loro Autori nella stessa forma.
Potete gime una luce? Grazie.
Grazie, luci: se request.method == "POST": forma di libro = forma di libro (request.POST) b = forma di libro .save (commit = False) b.save() formset = PadreFormSet (request.POST, request.FILES, instance = b) if formset.is_valid(): formset.save() Ha funzionato per me, grazie! – panchicore