Skip to content

Commit

Permalink
Merge 26f78cd into 344eef3
Browse files Browse the repository at this point in the history
  • Loading branch information
azman0101 committed Jan 11, 2015
2 parents 344eef3 + 26f78cd commit ca628d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_geoip/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def by_ip(self, ip):
raise IpRange.DoesNotExist

try:
return super(IpRangeManager, self).get_query_set()\
return super(IpRangeManager, self).get_queryset()\
.filter(start_ip__lte=number, end_ip__gte=number)\
.order_by('end_ip', '-start_ip')[0]
except IndexError:
Expand Down Expand Up @@ -157,4 +157,4 @@ def get_available_locations(cls):
return NotImplemented

class Meta:
abstract = True
abstract = True

0 comments on commit ca628d7

Please sign in to comment.