#9071: Can't disable "add" popup links in the admin -------------------------------------------+-------------------------------- Reporter: jacob | Owner: kratorius Status: new | Milestone: Component: django.contrib.admin | Version: 1.0 Resolution: | Keywords: pyconuk Stage: Accepted | Has_patch: 1 Needs_docs: 1 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Comment (by fabionatali):
Replying to [comment:5 mtredinnick]: > What's the use-case here? If you have permission to add the object, it's giving you a way to add it. If you don't have permission to add objects of that type, it shouldn't be showing the plus-sign, but I believe that's already the case. > > Saying that you can add it in one way, but not in another seems inconsistent. If you have a foreign key with a limit_choices_to filter, then in your admin you get a drop down menu with a selection of items. However, if you add a new item through the green plus link, you can actually circumvent this limit_choices_to filter. You can create a new object which doesn't agree with the limit_choices_to filter and it will be used in the foreign key field despite the filter. This could be a scenario where disabling the green plus link would make sense. My 2 cents. -- Ticket URL: <http://code.djangoproject.com/ticket/9071#comment:6> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---