diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-18 23:36:29 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-18 23:36:29 +0300 |
commit | b54c9272c9ad8c9900e0c92f95a260235eab4f99 (patch) | |
tree | a1742965902bb3f9224446e836728a1a938429b3 /servo/models/common.py | |
parent | 50fe15e2747c5b9f81e17cb389ccf74f589d4671 (diff) | |
download | Servo-b54c9272c9ad8c9900e0c92f95a260235eab4f99.tar.gz Servo-b54c9272c9ad8c9900e0c92f95a260235eab4f99.tar.bz2 Servo-b54c9272c9ad8c9900e0c92f95a260235eab4f99.zip |
Cleanup
Diffstat (limited to 'servo/models/common.py')
-rw-r--r-- | servo/models/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/servo/models/common.py b/servo/models/common.py index 3c06d84..4338405 100644 --- a/servo/models/common.py +++ b/servo/models/common.py @@ -244,9 +244,10 @@ class GsxAccount(models.Model): @classmethod def get_default_account(cls): + from servo.lib.utils import empty act_pk = Configuration.conf('gsx_account') - if act_pk in ('', None,): + if empty(act_pk): raise ValueError(_('Default GSX account not configured')) return GsxAccount.objects.get(pk=act_pk) |