python - In Django-admin, how to show foreignkey's foreignkey in the same page? -


i got paper , foreignkey choicequestion model, , foreignkey choices model.

i'm wondering if django-admin show choices in change-form page of paper.

class paper(models.model):     """pagers"""     # ...  class choicequestion(models.model):     paper = models.foreignkey(paper)     name = models.charfield(max_length=256)   class choice(models.model):     choice_question = models.foreignkey(choicequestion)     text = models.charfield(max_length=256) 

normally can edit choicequestion in paper's editing page, how edit choice in page also?

maybe did not describe clearly.

but djang-nested-inline helps lot.

this allows edit foreignkey's foreignkey in same page , nested deep level.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -