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
Post a Comment