Make org_app use the new licenses set
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 19 Feb 2009 21:10:42 +0000
changeset 1403 7ffce7c14da6
parent 1402 e699ea116b32
child 1404 3baec5ce9911
Make org_app use the new licenses set Patch by: Sverre Rabbelier
app/soc/models/org_app.py
--- a/app/soc/models/org_app.py	Thu Feb 19 21:10:09 2009 +0000
+++ b/app/soc/models/org_app.py	Thu Feb 19 21:10:42 2009 +0000
@@ -25,6 +25,8 @@
 
 from django.utils.translation import ugettext
 
+from soc.models import licenses
+
 import soc.models.document
 import soc.models.group_app
 import soc.models.user
@@ -49,8 +51,8 @@
       'If your group has not previously participated, have you applied in'
       ' the past?  If so, for what sort of participation?'))
   
-  license_name = db.StringProperty(required=True, verbose_name=ugettext(
-      'What license does your organization use?'))
+  license_name = db.StringProperty(required=True, choices=licenses.LICENSES,
+      verbose_name=ugettext('What license does your organization use?'))
  
   ideas = db.LinkProperty(required=True, verbose_name=ugettext(
       'What is the URL to the ideas list of your organization?'))