Ticket #15305: geoqueryset-values.diff
File geoqueryset-values.diff, 761 bytes (added by , 14 years ago) |
---|
-
django/contrib/gis/tests/relatedapp/tests.py
232 232 loc = Location.objects.annotate(num_cities=Count('city')).get(id=dallas.location.id) 233 233 self.assertEqual(2, loc.num_cities) 234 234 235 locqs = Location.objects.filter(id__gte=1).annotate(num_cities=Count('city')).values('id', 'point', 'num_cities') 236 len(locqs) 237 235 238 def test12b_count(self): 236 239 "Testing `Count` aggregate use with the `GeoManager` on non geo-fields. See #11087." 237 240 # Should only be one author (Trevor Paglen) returned by this query, and