From b54c9272c9ad8c9900e0c92f95a260235eab4f99 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 18 Aug 2015 23:36:29 +0300 Subject: Cleanup --- servo/models/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'servo/models/common.py') 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) -- cgit v1.2.3