Akshay has proposed merging lp:~akshaytayal/loco-directory/608289 into
lp:loco-directory.
Requested reviews:
loco-directory-dev (loco-directory-dev)
Related bugs:
#608289 Add continent field to venue
https://bugs.launchpad.net/bugs/608289
For more details, see:
https://code.launchpad.net/~akshaytayal/loco-directory/608289/+merge/51963
Added a Continent field in Venue so that the selected country spans more than
one.
--
https://code.launchpad.net/~akshaytayal/loco-directory/608289/+merge/51963
Your team loco-directory-dev is requested to review the proposed merge of
lp:~akshaytayal/loco-directory/608289 into lp:loco-directory.
=== modified file 'loco_directory/templates/venues/venue_update.html'
--- loco_directory/templates/venues/venue_update.html 2011-02-17 16:23:06 +0000
+++ loco_directory/templates/venues/venue_update.html 2011-03-02 21:14:14 +0000
@@ -13,7 +13,7 @@
$(function(){
$('#venue-map-selector').selectLocation({html_lng: $("#id_longitude"),
html_lat: $("#id_latitude"),
- html_addr: $("#id_country, #id_spr, #id_city, #id_address"),
+ html_addr: $("#id_country, #id_spr, #id_city, #id_address, #id_continent"),
marker_icon: '{{ MEDIA_URL }}img/marker.png'});
$('span[rel*=help]').colorTip({color:'orange'});
=== modified file 'loco_directory/venues/models.py'
--- loco_directory/venues/models.py 2010-12-20 23:54:15 +0000
+++ loco_directory/venues/models.py 2011-03-02 21:14:14 +0000
@@ -3,6 +3,8 @@
from django.db.models import permalink
from teams.models import Country
+from teams.models import Continent
+
import pytz
@@ -18,6 +20,7 @@
"""
name = models.CharField(help_text=_('Name of the Venue'), max_length=150)
country = models.ForeignKey(Country, null=True)
+ continent = models.ForeignKey(Continent, null=True)
spr = models.CharField(_("State/Province/Region"), max_length=50, null=True, blank=True)
city = models.CharField(help_text=_('City Name'), max_length=150, null=True, blank=True)
address = models.CharField(help_text=_('Address with Street and Number'), max_length=150, null=True, blank=True)
_______________________________________________
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