#6407: ModelChoiceField with widget=HiddenInput doesn't behave as expected ------------------------------------------------------+--------------------- Reporter: Andy McCurdy <sed...@gmail.com> | Owner: nobody Status: reopened | Milestone: Component: Forms | Version: SVN Resolution: | Keywords: ModelChoiceField HiddenInput Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------------------------+--------------------- Changes (by oceantara):
* status: closed => reopened * resolution: worksforme => Comment: But there's no reason to have to use User.objects.all(). You know the exact object you want. Plus, having a User.objects.all() is dangerous - you're selecting all user objects and exposing to a selected user. Its just too easy to imagine a simple mistake where all users or other type of foreign key objects are exposed to the end user. Isn't there a way to restrict the queryset based on Model's id? -- Ticket URL: <http://code.djangoproject.com/ticket/6407#comment:5> 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 django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---