Support Google Font dependencies
Allow downloading fonts from Google Font at install time. Closes GitLab issue #595, thanks to Martin (@efelon) for the report. Closes re-opened GitLab issue #343. Remove included Lato font. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
||||
from django.core import management
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from ...classes import JavaScriptDependency
|
||||
from ...classes import GoogleFontDependency, JavaScriptDependency
|
||||
|
||||
|
||||
class Command(management.BaseCommand):
|
||||
@@ -24,3 +24,7 @@ class Command(management.BaseCommand):
|
||||
app_label=options['app'], force=options['force'],
|
||||
subclass_only=True
|
||||
)
|
||||
GoogleFontDependency.install_multiple(
|
||||
app_label=options['app'], force=options['force'],
|
||||
subclass_only=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user