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

Can't create editable foreign key field in Django admin: going to give up on django

2016-09-12 Thread Hanh Kieu
Hey guys, I'm creating a translation app that allows you to translate from one object to the other. My translation model has two foreign keys that links to two words, and on the admin site I want the Admin to be able to input two different words. The words they enter should be saved as individu

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-12 Thread Hanh Kieu
"So your Translation needs a FK to each of two different words. " What would this look like? On Monday, September 12, 2016 at 10:42:10 PM UTC-7, Mike Dewhirst wrote: > > On 13/09/2016 3:02 PM, Hanh Kieu wrote: > > Hey guys, I'm creating a translation app that allows

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-20 Thread Hanh Kieu
Thank You Mike, I understand what you mean and I've made the changes, but it doesn't help me with my original problem, unfortunately. On Tuesday, September 13, 2016 at 12:53:51 AM UTC-7, Mike Dewhirst wrote: > > On 13/09/2016 4:06 PM, Hanh Kieu wrote: > > "So your Tra

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-20 Thread Hanh Kieu
7:29 GMT+02:00 Luis Zárate >: > >> See https://github.com/django-parler/django-parler >> >> 2016-09-12 23:02 GMT-06:00 Hanh Kieu >: >> >>> Hey guys, I'm creating a translation app that allows you to translate >>> from one object to the other. My

How to create a custom form in Django Admin page, that doesn't relate to a model

2016-09-20 Thread Hanh Kieu
I am building a dictionary translation app that translates from one language to another, and I would like for the admin to be able to enter in two words, and their associated languages, these two words would, then get stored as a translation. Currently there is no way of doing this (Inline does