Domanda

I'm trying to allow Keywords to be edited sitewide, this is what i did try so far:

ADMIN_MENU_ORDER = (
     ("Content", ("pages.Page",   
                  "blog.BlogPost",
                  "generic.ThreadedComment",
                  "generic.Keyword",
                  ("Media Library", "fb_browse"),
     )),
     ("Users", ("auth.User",
                "auth.Group",
     )),
     ("Site", ("sites.Site",
               "redirects.Redirect",
               "conf.Setting",
     )),
 )

But there is just no "Keywords" section appearing where i could easily edit the Keywords i did set.

È stato utile?

Soluzione

Just create a Django admin class for the Keyword model and register it.

https://docs.djangoproject.com/en/1.6/ref/contrib/admin/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top