-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
MultipleObjectsReturned: get() returned more than one IPStore -- it returned 2!
Issue is probably at
try:
ipstore = IPStore.objects.get(ip=ip)
except:
queryset = IPStore.objects.filter(
geocoded_postal_code=postcode,
census__isnull=False
)
if queryset.count():
ipstore = queryset[0]
else:
ipstore = None
if ipstore:
census = ipstore.census
return censusMetadata
Metadata
Assignees
Labels
No labels