#24837: Unable to query DateField using DateRange
----------------------------------+-----------------
     Reporter:  schinckel         |      Owner:
         Type:  Uncategorized     |     Status:  new
    Component:  contrib.postgres  |    Version:  1.8
     Severity:  Normal            |   Keywords:
 Triage Stage:  Unreviewed        |  Has patch:  0
Easy pickings:  1                 |      UI/UX:  0
----------------------------------+-----------------
 {{{MyModel.objects.filter(datefield__contained_by=DateRange(...))}}}

 The lookup is not defined on that field:


 > FieldError: Unsupported lookup 'contained_by' for IntegerField or join
 on the field not permitted.

--
Ticket URL: <https://code.djangoproject.com/ticket/24837>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.fe849fb5cba36b21a92a69467134f355%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to