id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 29054 "QuerySet with multiple annotations crashes with ""unhashable type: 'Point'""" Lachlan Cannon Mariusz Felisiak "Simplified example to reproduce, with these models: {{{#!python class State(models.Model): name = models.CharField(max_length=100) class Locality(models.Model): name = models.CharField(max_length=100) location = models.PointField(geography=True) state = models.ForeignKey(State, on_delete=models.CASCADE) }}} Running the following code works fine in 2.0 (assuming you have a few models set up): {{{#!python State.objects.annotate(distance=Distance('locality__location', Locality.objects.first().location)) }}} But this code works in 1.11, and fails in 2.0.1 with TypeError: unhashable type: 'Point': {{{#!python State.objects.annotate(distance=Distance('locality__location', self.locality.location)).annotate(count=Count('locality')) }}}" Bug closed GIS 2.0 Release blocker fixed Ian Foote Mariusz Felisiak Ready for checkin 1 0 0 0 0 0