Fix manager import error
This commit is contained in:
parent
5f1824742d
commit
393d0f0291
|
@ -1,5 +1,5 @@
|
|||
from django.db import connection
|
||||
from django.contrib.gis.db import models, manager
|
||||
from django.contrib.gis.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
|
@ -10,7 +10,7 @@ class AuthorityRecord(models.Model):
|
|||
def __unicode__(self):
|
||||
return self.preferred_name
|
||||
|
||||
class FeatureSearchManager(manager.GeoManager):
|
||||
class FeatureSearchManager(models.GeoManager):
|
||||
def set_threshold(self, threshold):
|
||||
"""Set the limit for trigram similarity matching."""
|
||||
cursor = connection.cursor
|
||||
|
|
Loading…
Reference in New Issue
Block a user