Searching for a venue gives error about google maps API

Bug #600198 reported by Rory McCann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LoCo Team Portal
Fix Released
High
Michael Hall

Bug Description

When you search for a venue (using this page http://loco.ubuntu.com/venues/) after pressing the search icon, the next page is white and there is a javascript alert popup that says "This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/."

Related branches

Revision history for this message
Daniel Holbach (dholbach) wrote :

Traceback (most recent call last):

  File "/var/lib/python-support/python2.5/django/core/handlers/base.py", line 86, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/srv/loco.ubuntu.com/loco_directory/venues/views.py", line 24, in venue_list
    venue_list = venue_list.filter(Q(name__icontains=q) | Q(country__icontains=q) | Q(city__icontains=q) | Q(address__icontains=q))

  File "/var/lib/python-support/python2.5/django/db/models/query.py", line 489, in filter
    return self._filter_or_exclude(False, *args, **kwargs)

  File "/var/lib/python-support/python2.5/django/db/models/query.py", line 507, in _filter_or_exclude
    clone.query.add_q(Q(*args, **kwargs))

  File "/var/lib/python-support/python2.5/django/db/models/sql/query.py", line 1254, in add_q
    self.add_q(child, used_aliases)

  File "/var/lib/python-support/python2.5/django/db/models/sql/query.py", line 1258, in add_q
    can_reuse=used_aliases)

  File "/var/lib/python-support/python2.5/django/db/models/sql/query.py", line 1201, in add_filter
    self.where.add((alias, col, field, lookup_type, value), connector)

  File "/var/lib/python-support/python2.5/django/db/models/sql/where.py", line 48, in add
    params = field.get_db_prep_lookup(lookup_type, value)

  File "/var/lib/python-support/python2.5/django/db/models/fields/related.py", line 156, in get_db_prep_lookup
    raise TypeError, "Related Field has invalid lookup: %s" % lookup_type

TypeError: Related Field has invalid lookup: icontains

Changed in loco-directory:
importance: Undecided → High
status: New → Triaged
Changed in loco-directory:
assignee: nobody → mhall119 (mhall119)
milestone: none → 0.2.12
status: Triaged → Fix Committed
Changed in loco-directory:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.