1

I have a model that contains 3 class (Person, Business, Renewal) Relation: A Person can have multiple Business and each business can have multiple Renewal. Problem: For the admin.py I would use inline to connect Person(modelAdmin) with Business(StackedInline). Now my problem is how to connect renewal with business.

basically the there is a 2nd layer of relationship.

eakdev
  • 101
  • 1
  • 10
  • is this what you need? http://stackoverflow.com/questions/702637/django-admin-inline-inlines-or-three-model-editing-at-once – doniyor Dec 30 '14 at 12:15
  • @doniyor yes similar problem, the only thing is I want to do it on the admin.py how do i do the nested relationships in admin.py – eakdev Dec 30 '14 at 12:36
  • I never tried it, but this seems to address your issue: https://github.com/s-block/django-nested-inline/ – mbrochh Dec 30 '14 at 14:34
  • @mbrochh i tried that unfortunately they won't work with django 1.7 due to some depreciation, unless you know a work around. – eakdev Dec 30 '14 at 23:34

0 Answers0