Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Get the default version of Firefox if no version present (bug 663745)
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Jun 13, 2011
1 parent 0403b84 commit 746436d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/search/forms.py
Expand Up @@ -114,7 +114,8 @@ def clean(self):
cleaned['page'] = 1

if not cleaned.get('version'):
cleaned['version'] = Version(LATEST_BETAS[FIREFOX]).simplified
cleaned['version'] = (getattr(FIREFOX, 'default_version', None) or
Version(LATEST_BETAS[FIREFOX]).simplified)
elif cleaned['version'] == '--':
cleaned['version'] = ''

Expand Down

0 comments on commit 746436d

Please sign in to comment.