diff --git a/iconfonts/django/models.py b/iconfonts/django/models.py index e49198f..5388308 100644 --- a/iconfonts/django/models.py +++ b/iconfonts/django/models.py @@ -13,4 +13,6 @@ pass INSTALLED_ICONFONTS = [cls for cls in fonts.IconsFont.registry] -ICONFONT = getattr(settings, 'ICONFONT', INSTALLED_ICONFONTS[0].name) \ No newline at end of file +ICONFONT = getattr(settings, 'ICONFONT', None) +if ICONFONT is None and len(INSTALLED_ICONFONTS) > 0: + ICONFONT = INSTALLED_ICONFONTS[0].name