Changes between Initial Version and Version 1 of Ticket #11329


Ignore:
Timestamp:
Jun 16, 2009, 6:12:09 PM (15 years ago)
Author:
Alex Gaynor
Comment:

Please use the preview option. Also, are you using the internal get_count() function instead of the public count() API.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11329 – Description

    initial v1  
    11Extending an example on extra 'select' from http://docs.djangoproject.com/en/1.0/ref/models/querysets/ with an extra 'with' and calling get_count:
    2 
     2{{{
    33Blog.objects.extra(
    44    select={
     
    77    where=['entry_count=0']
    88).query.get_count()
    9 
     9}}}
    1010results in OperationalError: no such column: entry_count.
    1111
Back to Top