Changes between Initial Version and Version 1 of Ticket #25446, comment 2


Ignore:
Timestamp:
Sep 22, 2015, 2:47:55 PM (9 years ago)
Author:
Claude Paroz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25446, comment 2

    initial v1  
    44
    55{{{
     6from django.contrib.gis.db.backends.postgis.operations import PostGISOperator
    67from django.contrib.gis.db.models import GeometryField
    78from django.contrib.gis.db.models.lookups import GisLookup
    89
    910class OrderingEqualsLookup(GISLookup):
    10     lookup_name = 'ST_OrderingEquals'
    11 
     11    def get_operator(connection):
     12        return PostGISOperator(func='ST_OrderingEquals')
    1213GeometryField.register_lookup(OrderingEqualsLookup)
    1314}}}
Back to Top