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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -