Skip to content

Commit

Permalink
add language code command line option to management command.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Sep 23, 2015
1 parent 19537fe commit 3e51aa3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions statictemplate/management/commands/statictemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,15 @@ class Command(BaseCommand):
action='store',
dest='output',
help='Output file'),
make_option('--language-code', '-l',
action='store',
dest='language_code',
help='Language Code')
)

def handle(self, template, language=None, extra_request=None, **options):
request = {}
language = options.get('language_code', False)
if not language:
language = get_language()
if extra_request:
Expand Down

0 comments on commit 3e51aa3

Please sign in to comment.