diff --git a/dpaste/forms.py b/dpaste/forms.py index 831ecfe..e163b64 100644 --- a/dpaste/forms.py +++ b/dpaste/forms.py @@ -60,7 +60,7 @@ class SnippetForm(forms.ModelForm): self.fields['lexer'].initial = session_lexer # if the lexer is given via GET, set it - if 'l' in request.GET and request.GET['l'] in LEXERK_KEYS: + if 'l' in request.GET and request.GET['l'] in LEXER_KEYS: self.fields['lexer'].initial = request.GET['l']