Changes between Initial Version and Version 1 of Ticket #11580, comment 10


Ignore:
Timestamp:
Sep 2, 2014, 3:23:12 AM (10 years ago)
Author:
Pauli Sundberg

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11580, comment 10

    initial v1  
    44
    55
     6EDIT: Actually there is something else also wrong, either my understanding or 'exclude' operator:
     7
     8
     9{{{
     10In [20]: statistics_data.models.Measurement.objects.all().values_list( 'json_values' )
     11Out[20]: [(u'foo bar',), (u'foo bar',), (u'',)]
     12
     13In [21]: statistics_data.models.Measurement.objects.filter(json_values="").count()
     14Out[21]: 1
     15
     16In [22]: statistics_data.models.Measurement.objects.exclude(json_values="").count()
     17Out[22]: 3
     18}}}
     19
     20
     21
Back to Top