#18236: keyword parameter naming collision with get_object_or_404 -------------------------------+-------------------------------------- Reporter: anonymous | Owner: nobody Type: Uncategorized | Status: closed Component: Core (Other) | Version: 1.4 Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------------------------- Changes (by akaariai):
* status: new => closed * needs_better_patch: => 0 * resolution: => wontfix * needs_tests: => 0 * needs_docs: => 0 Comment: You can wrap the klass='someclass' filter into django.db.models.Q(klass='someclass') and things should work. So, instead of: {{{ get_object_or_404(klass='someclass') }}} do {{{ from django.db.models import Q get_object_or_404(Q(klass='someclass')) }}} I am marking this as wontfix, as this condition is IMO rare enough to not warrant any fixes. -- Ticket URL: <https://code.djangoproject.com/ticket/18236#comment:1> Django <https://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.