[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'] a

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): parent

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 and for Grappelli . In the

Re: [mezzanine-users] Nested inline admins

2015-05-17 Thread Tom Cook
Hi Eduardo, Thanks for your advice. What I'm trying to do is a bit like a gallery, but where individual photos can have several images attached to them. The purpose of this is for preserving some old photos where some have several prints of the same negative or where I want to capture both th

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