Re: How to prevent empty record in admin subform

2019-10-09 Thread Jérôme Le Carrou
thanks it works ! Le mercredi 9 octobre 2019 08:54:56 UTC+2, Aldian Fazrihady a écrit : > > Can you replace `extra = 1` with `extra = 0` ? > > On Wed, Oct 9, 2019 at 1:26 PM Jérôme Le Carrou > wrote: > >> Hello, >> I am newbie in Django and Python so hope you will be indulgent >> I've read and re

Re: How to prevent empty record in admin subform

2019-10-08 Thread Aldian Fazrihady
Can you replace `extra = 1` with `extra = 0` ? On Wed, Oct 9, 2019 at 1:26 PM Jérôme Le Carrou wrote: > Hello, > I am newbie in Django and Python so hope you will be indulgent > I've read and read again the Django documentation but for now, some concept > still are very abstract for me... > > I

How to prevent empty record in admin subform

2019-10-08 Thread Jérôme Le Carrou
Hello, I am newbie in Django and Python so hope you will be indulgent I've read and read again the Django documentation but for now, some concept still are very abstract for me... I have a database and I use ModelForm and I try to customize this admin forms I currently have a main form with a