Created
March 2, 2014 03:39
-
-
Save dpnova/9301557 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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