Re: How to hide the "save and add another" button in admin page?

2014-01-20 Thread m1chael
How about extending a template and issuing a CSS visibility ? On Mon, Jan 20, 2014 at 3:01 AM, parnigot wrote: > If your method ModelAdmin.has_add_permission() returns always False even a > superuser can’t add the initial entry using the admin. But you can: > > Add the

Re: How to hide the "save and add another" button in admin page?

2014-01-20 Thread parnigot
If your method ModelAdmin.has_add_permission() returns always False even a superuser can’t add the initial entry using the admin. But you can: Add the initial entry using the command line. Write a more complex has_add_permission method that checks if the request.user is a superuser or checks if

Re: How to hide the "save and add another" button in admin page?

2014-01-19 Thread RLF_UNIQUE
Ah I see, give a user change permission but not add or remove? Then just use superaccount to make initial entry? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: How to hide the "save and add another" button in admin page?

2014-01-19 Thread parnigot
Il 19/01/14 02:38, RLF_UNIQUE ha scritto: 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

How to hide the "save and add another" button in admin page?

2014-01-18 Thread RLF_UNIQUE
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