Permalink
Browse files

Used getattr instead of hasattr

  • Loading branch information...
1 parent 31402bb commit 7193c8cc1ae3c282b2f9cd1ae619baa30442eb1a @dduan committed Jul 20, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 sophie/utils.py
View
@@ -6,10 +6,7 @@
from django.conf import settings
# set multiblog_enabled = True to enable multi blog url routing
-if hasattr(settings, 'SOPHIE_ENABLES_MULTIBLOG'):
- multiblog_enabled = settings.SOPHIE_ENABLES_MULTIBLOG
-else:
- multiblog_enabled = False
+multiblog_enabled = getattr(settings, 'SOPHIE_ENABLES_MULTIBLOG', False)
class LaidbackPaginator(Paginator):
'''

0 comments on commit 7193c8c

Please sign in to comment.