Ticket #15305: geoqueryset-values.diff

File geoqueryset-values.diff, 761 bytes (added by vrehak, 14 years ago)
  • django/contrib/gis/tests/relatedapp/tests.py

     
    232232        loc = Location.objects.annotate(num_cities=Count('city')).get(id=dallas.location.id)
    233233        self.assertEqual(2, loc.num_cities)
    234234
     235        locqs = Location.objects.filter(id__gte=1).annotate(num_cities=Count('city')).values('id', 'point', 'num_cities')
     236        len(locqs)
     237
    235238    def test12b_count(self):
    236239        "Testing `Count` aggregate use with the `GeoManager` on non geo-fields. See #11087."
    237240        # Should only be one author (Trevor Paglen) returned by this query, and
Back to Top