Re: Models in admin view

2019-03-03 Thread 'Amitesh Sahay' via Django users
Hello Raghav,  Once you register something in admin.py, you should see  that update in the admin page. Login there and click on "candidates" , now you can add the candidates multiple times. Regards, Amitesh Sahay91-750 797 8619 On Friday, 1 March, 2019, 6:34:56 pm IST, raghav b wrote:

Re: Models in admin view

2019-03-01 Thread Andréas Kühne
Hi, You can look here: https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin This is the functionality you want. Regards, Andréas Den fre 1 mars 2019 kl 14:05 skrev raghav b < raghav.balasubraman...@gmail.com>: > I have created two apps with the name

Models in admin view

2019-03-01 Thread raghav b
I have created two apps with the name candidate and another training. In the Django admin I want to create trainings and add candidates to that. I have created candidate and training and registered in the admin view. But for the last part I want to add multiple candidates into a training from ad

Re: How to have Multiple models in Admin View

2016-08-18 Thread ludovic coues
You should add a foreign key to language on translation. To save the language from the dropbox. Then I would create a ModelAdmin and set the form value. If I remember correctly, the save method is on the form and you could save new objet for each word at the same time as saving the translation obj

How to have Multiple models in Admin View

2016-08-18 Thread Hanh Kieu
I'm a little new to django. I would like to display multiple models in one admin view in django. when I do this: admin.site.register(Language) admin.site.register(Word) admin.site.register(Translation) b It would register 3 different models. My models look like this (this is for a dictionary a