Re: has_add_permission() isn't working properly

2009-05-17 Thread Sergio A.
here it is: http://code.djangoproject.com/ticket/11136 hope this will be considered, since it improves the user experience. Thanks for your feedback, Sergio On May 18, 12:19 am, Alex Gaynor wrote: > On Sun, May 17, 2009 at 5:15 PM, Karen Tracey wrote: > > On Sun, May 17, 2009 at 5:34 PM, S

Re: has_add_permission() isn't working properly

2009-05-17 Thread Alex Gaynor
On Sun, May 17, 2009 at 5:15 PM, Karen Tracey wrote: > On Sun, May 17, 2009 at 5:34 PM, Sergio A. wrote: > >> >> >> the issue seems not to be totally solved by the patch. >> >> If I have two classes A and B >> class A has a field being a foreign key to a B class field >> in the admin, when I add

Re: has_add_permission() isn't working properly

2009-05-17 Thread Karen Tracey
On Sun, May 17, 2009 at 5:34 PM, Sergio A. wrote: > > > the issue seems not to be totally solved by the patch. > > If I have two classes A and B > class A has a field being a foreign key to a B class field > in the admin, when I add an A element, I see the '+' button on the > foreign key field to

Re: has_add_permission() isn't working properly

2009-05-17 Thread Sergio A.
the issue seems not to be totally solved by the patch. If I have two classes A and B class A has a field being a foreign key to a B class field in the admin, when I add an A element, I see the '+' button on the foreign key field to B even though I do not have the rights to create a B element. Th

Re: has_add_permission() isn't working properly

2009-03-25 Thread Alex Gaynor
2009/3/25 João Olavo Baião de Vasconcelos > On Wed, Mar 25, 2009 at 10:25 AM, Karen Tracey wrote: > >> Probably a missed bit from when this was fixed for the other pages, see >> ticket #5447: >> > > Thanks a lot, Karen. I opened a new ticket: > http://code.djangoproject.com/ticket/10624#preview

Re: has_add_permission() isn't working properly

2009-03-25 Thread João Olavo Baião de Vasconcelos
On Wed, Mar 25, 2009 at 10:25 AM, Karen Tracey wrote: > Probably a missed bit from when this was fixed for the other pages, see > ticket #5447: > Thanks a lot, Karen. I opened a new ticket: http://code.djangoproject.com/ticket/10624#preview (they said in #5447 to create a new one if an issue rem

Re: has_add_permission() isn't working properly

2009-03-25 Thread Karen Tracey
2009/3/25 João Olavo Baião de Vasconcelos > 2009/3/25 João Olavo Baião de Vasconcelos > >> But such button stills appearing in the app page. > > when I access http://mysite/myproject/admin/myapp, the "Add" button >> appears next to every model. > > > Just to complete the problem description: eve

Re: has_add_permission() isn't working properly

2009-03-25 Thread João Olavo Baião de Vasconcelos
2009/3/25 João Olavo Baião de Vasconcelos > But such button stills appearing in the app page. when I access http://mysite/myproject/admin/myapp, the "Add" button appears > next to every model. Just to complete the problem description: even with the "Add" button appearing in the app page, when

has_add_permission() isn't working properly

2009-03-25 Thread João Olavo Baião de Vasconcelos
Hi there, In admin.py, some ModelAdmin classes have the method has_add_permission(), which just returns False. This way, the "Add" button is removed from the admin interface for some models. But such button stills appearing in the app page. I mean, when I'm at admin's Home page (http://mysite/myp