Re: [mezzanine-users] Nested inline admins

2015-05-19 Thread Josh Cartmell
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

[mezzanine-users] Nested inline admins

2015-05-13 Thread Tom Cook
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.

Re: [mezzanine-users] Nested inline admins

2015-05-13 Thread Josh Cartmell
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']

Re: [mezzanine-users] Nested inline admins

2015-05-13 Thread Tom Cook
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):

Re: [mezzanine-users] Nested inline admins

2015-05-13 Thread Eduardo Rivas
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