I got what I wanted by doing this:
Page.objects.filter(parent__isnull=True)
but the order was different. I am sure other people will have the same
problem, and I cannot find it documented anywhere, and it takes a bit of
going through the code to find it, so what works is
Page.objects.filter(parent__isnull=True).order_by('_order')
On Tuesday, October 6, 2015 at 10:11:41 PM UTC+5:30, Kenneth Bolton wrote:
>
> Hi Graeme,
>
> Mezzanine is and always has been just another simple Django application.
> In your custom app's views.py, you can handily import Mezzanine models and
> query them to generate the context for your templates.
>
> hth!
>
> ken
>
> On Tue, Oct 6, 2015 at 12:29 PM, Graeme Pietersz <[email protected]
> <javascript:>> wrote:
>
>> I want to show a menu containing top level mezzanine pages in a s(very
>> simple) ite specific custom app. I can modify the app, or the templates
>> which ever is simpler.
>>
>> All I want is a simple flat menu of top level pages.
>>
>> --
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.