Re: How to hide the "save and add another" button in admin page?
Il 19/01/14 02:38, RLF_UNIQUE ha scritto:
You should override in your ModelAdmin the method has_add_permissions (docs here).I have been trying all day. What I am doing is trying to have a model for an "about" page, which I want to limit to 1 item. It doesn't really make sense to have multiple "abouts". I've done everything described here
but can't get it to work, it works if in the ctx update I set show_save_and_add_another to false, but then the "save and add another" button doesn't show up for any model.
Please help.
When it returns False, all the add buttons in the admin will be disabled for that particular Model.
-- e.p.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home