Ticket #7873: geos_eq.diff

File geos_eq.diff, 571 bytes (added by jbronn, 7 years ago)
  • django/contrib/gis/geos/base.py

     
    166166        """
    167167        if isinstance(other, basestring):
    168168            return self.wkt == other
     169        elif isinstance(other, GEOSGeometry):
     170            return self.equals_exact(other)
    169171        else:
    170             return self.equals_exact(other)
     172            return False
    171173
    172174    def __ne__(self, other):
    173175        "The not equals operator."
Back to Top