Hi Tom, I would do something like this:
https://gist.github.com/joshcartme/6856ee5e35c7a6456d9e
I just through that together so there probably are typos and missing
imports, but it's a pattern I've used many times.
If you follow that, you second level inline will have a link that says
Edit third
Is it possible to nest inline admins in pace admins in mezzanine?
--
You received this message because you are subscribed to the Google Groups
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to mezzanine-users+unsubscr...@googlegroups.com.
Hi Tom, I'm guessing you meant page. The answer is yes.
Do something like this in your admin.py:
from mezzanine.pages.admin import PageAdmin
from .models import MyPageModel
...set up some inlines here...
class MyPageModelAdmin(PageAdmin):
inlines = ['whatever', 'inlines', 'you', 'want']
Hi Josh,
Yes, s/pace/page/. Typing on a phone late at night, I'm afraid.
I don't quite get what you've suggested. Won't that give me several
inlines one after the other? What I mean is a model like this:
class TopLevel(Page):
pass
class SecondLevel(Orderable):
Hi Tom. For your particular requirements, I would say no, Mezzanine
lacks this feature. There are some projects out there that are meant to
do it for vanilla Django
https://github.com/s-block/django-nested-inline and for Grappelli
https://github.com/datahub/grappelli-nested-inlines. In the