Skip to content

Commit

Permalink
ordered by locale__code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhenry committed Jan 30, 2019
1 parent 3c3d5df commit d11217d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/Localizr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Meta(object):
verbose_name_plural = 'Keys'

def available_locales(self):
return ",".join(list(self.values.values_list('locale__code', flat=True)))
return ", ".join(list(self.values.values_list('locale__code', flat=True).order_by('locale__code')))

class AppInfoKeyStringQuerySet(models.QuerySet):

Expand Down

0 comments on commit d11217d

Please sign in to comment.