Skip to content

Commit

Permalink
MOX-133: Never attempt to set the location of a user to be the same a…
Browse files Browse the repository at this point in the history
…s an entity with no location
  • Loading branch information
cnorthwood committed Jul 11, 2011
1 parent 4731ebe commit 1f12789
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions molly/geolocation/providers/places.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ def geocode(self, query):
entities = entities.filter( entities = entities.filter(
_identifiers__scheme__in = self.search_identifiers, _identifiers__scheme__in = self.search_identifiers,
_identifiers__value__iexact = query, _identifiers__value__iexact = query,
location__isnull = False
) )
else: else:
entities = entities.filter( entities = entities.filter(
_identifiers__value__iexact = query, _identifiers__value__iexact = query,
location__isnull = False
) )


entities = chain( entities = chain(
Expand Down

0 comments on commit 1f12789

Please sign in to comment.