Ronnie has proposed merging lp:~ronnie.vd.c/loco-directory/null-locations into
lp:loco-directory.
Requested reviews:
loco-directory-dev (loco-directory-dev)
For more details, see:
https://code.launchpad.net/~ronnie.vd.c/loco-directory/null-locations/+merge/52349
Events that has a Venue with no lat/lng are not show on the map anymore
--
https://code.launchpad.net/~ronnie.vd.c/loco-directory/null-locations/+merge/52349
Your team loco-directory-dev is requested to review the proposed merge of
lp:~ronnie.vd.c/loco-directory/null-locations into lp:loco-directory.
=== modified file 'loco_directory/events/views.py'
--- loco_directory/events/views.py 2011-02-23 01:05:59 +0000
+++ loco_directory/events/views.py 2011-03-06 22:18:54 +0000
@@ -476,7 +476,7 @@
the longitude and latitude for upcoming team events
"""
locations = []
- for event in TeamEvent.objects.next_events():
+ for event in TeamEvent.objects.next_events().exclude(venue__latitude__isnull=True, venue__longitude__isnull=True):
location = {}
location['url'] = event.get_absolute_url()
location['title'] = event.name
_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help : https://help.launchpad.net/ListHelp