Skip to content

Commit

Permalink
switch to using single cc codes for DISTILL_LANGUAGES
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed May 25, 2024
1 parent acecdc5 commit 8313a69
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions django_distill/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,8 @@ def get_langs(self):
DISTILL_LANGUAGES = []
if default_lang not in DISTILL_LANGUAGES:
langs.append(default_lang)
for lang in settings.LANGUAGES:
if len(lang) != 2:
raise DistillError('Invalid settings.LANGUAGES value')
langs.append(lang[0])
for lang in settings.DISTILL_LANGUAGES:
langs.append(lang)
return langs

def _get_filename(self, file_name, uri, param_set):
Expand Down

0 comments on commit 8313a69

Please sign in to comment.