Re: how to add an extra field in an admin form (not part of the model)

2020-05-17 Thread Carles Pina i Estany
Thanks very much! I've quickly watched the video... sadly the video helps to add fields into the registration form, not in the admin section (the, by default, /admin URL). As a side note and for future reference anyone here: one of my attempts on Friday was following this one:

Re: how to add an extra field in an admin form (not part of the model)

2020-05-17 Thread Anonymous Patel
https://youtu.be/lHQI9ydQlSU Try this video it might help, it helped me for the same problem. Raj Patel On Sun, 17 May, 2020, 6:50 pm Carles Pina i Estany, wrote: > > Hi, > > Last week I tried to do something in admin but it didn't work as I had > guessed. > > The simplification of what I

how to add an extra field in an admin form (not part of the model)

2020-05-17 Thread Carles Pina i Estany
Hi, Last week I tried to do something in admin but it didn't work as I had guessed. The simplification of what I wanted is to have an extra field in the admin form. What I tried to do is what I do in forms outside admin: - class MyModelForm(forms.ModelForm): def __init__(self,