Skip to content

Commit

Permalink
fix error on reading the default font
Browse files Browse the repository at this point in the history
  • Loading branch information
joke2k committed Jun 16, 2014
1 parent 2e648bb commit 2932464
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iconfonts/django/models.py
Expand Up @@ -13,4 +13,6 @@
pass

INSTALLED_ICONFONTS = [cls for cls in fonts.IconsFont.registry]
ICONFONT = getattr(settings, 'ICONFONT', INSTALLED_ICONFONTS[0].name)
ICONFONT = getattr(settings, 'ICONFONT', None)
if ICONFONT is None and len(INSTALLED_ICONFONTS) > 0:
ICONFONT = INSTALLED_ICONFONTS[0].name

0 comments on commit 2932464

Please sign in to comment.