From 0b1dee516daa9b9825758e84cafa7f0b08a255ac Mon Sep 17 00:00:00 2001 From: fivethreeo Date: Tue, 14 Dec 2010 12:10:41 +0100 Subject: [PATCH] error in language choices fixed --- cmsplugin_pygments/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmsplugin_pygments/models.py b/cmsplugin_pygments/models.py index d3cf0d6..3fc4743 100644 --- a/cmsplugin_pygments/models.py +++ b/cmsplugin_pygments/models.py @@ -5,7 +5,7 @@ STYLE_CHOICES = map(lambda x: (x,x), get_all_styles()) -LANGUAGE_CHOICES = map(lambda x: (x[0],x[1][0]), get_all_lexers()) +LANGUAGE_CHOICES = map(lambda x: (x[1][0], x[0]), get_all_lexers()) LANGUAGE_CHOICES.sort(lambda x,y: cmp(x[0], y[0])) class PygmentsPlugin(CMSPlugin):