Add a Google Maps property to Site Settings
Patch by: Lennard de Rijk <ljvderijk@gmail.com>
Reviewed by: Sverre Rabbelier
--- a/app/soc/models/site_settings.py Sun Nov 09 21:24:49 2008 +0000
+++ b/app/soc/models/site_settings.py Sun Nov 09 21:40:28 2008 +0000
@@ -18,6 +18,7 @@
__authors__ = [
'"Pawel Solyga" <pawel.solyga@gmail.com>',
+ '"Lennard de Rijk" <ljvderijk@gmail.com>',
]
@@ -40,3 +41,8 @@
'entered every page is going to have Google Analytics '
'initialization code in footer.')
+ # valid Google Maps API Key. Used to embed Google Maps.
+ gm_api_key = db.StringProperty(verbose_name=ugettext_lazy('Google Maps'))
+ gm_api_key.help_text = ugettext_lazy(
+ 'Valid Google Maps API Key. This key is used for '
+ 'embedding Google Maps into the website.')