Ticket #21228: patch.diff

File patch.diff, 720 bytes (added by Étienne Loks <etienne.loks@…>, 11 years ago)
  • django/contrib/gis/db/models/proxy.py

    diff --git a/django/contrib/gis/db/models/proxy.py b/django/contrib/gis/db/models/proxy.py
    index 1fdc503..823fbe9 100644
    a b class GeometryProxy(object):  
    5959            # Set with None, WKT, HEX, or WKB
    6060            pass
    6161        else:
    62             raise TypeError('cannot set %s GeometryProxy with value of type: %s' % (obj.__class__.__name__, type(value)))
     62            raise TypeError('cannot set %s GeometryProxy (%s) with value of type: %s' % (obj.__class__.__name__, gtype, type(value)))
    6363
    6464        # Setting the objects dictionary with the value, and returning.
    6565        obj.__dict__[self._field.attname] = value
Back to Top