#16714: Can't list_filter across a relationship on a SmallIntegerField
------------------------------------+---------------------------------
               Reporter:  Clueless  |          Owner:  nobody
                   Type:  Bug       |         Status:  new
              Milestone:            |      Component:  contrib.admin
                Version:  1.3       |       Severity:  Release blocker
             Resolution:            |       Keywords:
           Triage Stage:  Accepted  |      Has patch:  0
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  0         |  Easy pickings:  0
                  UI/UX:  0         |
------------------------------------+---------------------------------
Changes (by julien):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * severity:  Normal => Release blocker
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


Comment:

 Hmm, the root cause of this seems like a problem not in the admin but
 deeper down in the ORM:

 {{{#!python
 >>> Src.objects.filter(rel__year=2010)
 ...
 TypeError: Related Field has invalid lookup: year
 }}}

 I would think perhaps the lookup should be 'exact' instead of 'year'. A
 separate ticket should probably be created for that. I'd like to hear from
 someone with more ORM-foo than me to confirm.

 However, this highlights a regression in the admin, as the development
 version returns a 500 instead of redirecting with "?e=1".

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16714#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 [email protected].
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.

Reply via email to