Permalink
Browse files

after choices are organized, add first language as the default choice…

… instead of -----
  • Loading branch information...
sergiocharpineljr committed Aug 17, 2012
1 parent 43ee5ea commit f722df7aa23069d5f992f08e4cb8c97e14119415
Showing with 1 addition and 0 deletions.
  1. +1 −0 ispdb/config/models.py
View
@@ -358,6 +358,7 @@ def __init__(self, *args, **kwargs):
li = get_language_info(code)
choices.append((code, lang + ' - ' + li['name_local']))
self.fields['language'].choices = choices
+ self.fields['language'].initial = choices[0]
class DocURLDescForm(LanguageDescModelForm):

0 comments on commit f722df7

Please sign in to comment.