Skip to content

Instantly share code, notes, and snippets.

@dpnova
Created March 2, 2014 03:39
Show Gist options
  • Save dpnova/9301557 to your computer and use it in GitHub Desktop.
Save dpnova/9301557 to your computer and use it in GitHub Desktop.
def page_gen():
from mezzanine.pages.models import Page
pages = Page.objects.all()
for page in pages:
yield (page.title, "page")
ADMIN_MENU_ORDER = (
# ("Content", ("pages.Page", "blog.BlogPost",
# "generic.ThreadedComment", ("Media Library", "fb_browse"),)),
# ("Site", ("sites.Site", "redirects.Redirect", "conf.Setting")),
# ("Users", ("auth.User", "auth.Group",)),
("Admin Pages", page_gen()),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment