Skip to content
Browse files

MOX-133: Never attempt to set the location of a user to be the same a…

…s an entity with no location
  • Loading branch information...
1 parent 4731ebe commit 1f12789004a0bbd49921c6840d92391520bd6cda @cnorthwood cnorthwood committed Jul 11, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 molly/geolocation/providers/places.py
View
2 molly/geolocation/providers/places.py
@@ -18,10 +18,12 @@ def geocode(self, query):
entities = entities.filter(
_identifiers__scheme__in = self.search_identifiers,
_identifiers__value__iexact = query,
+ location__isnull = False
)
else:
entities = entities.filter(
_identifiers__value__iexact = query,
+ location__isnull = False
)
entities = chain(

0 comments on commit 1f12789

Please sign in to comment.
Something went wrong with that request. Please try again.