Fixed import.

This commit is contained in:
Martin Mahner 2013-11-25 19:36:32 +01:00
parent 1069b3a88d
commit 75618d649b

View file

@ -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']