mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 23:23:06 +11:00
Fixed leading whitespace in API
This commit is contained in:
parent
7efff4fa19
commit
5278866610
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ class SnippetForm(forms.ModelForm):
|
|||
self.fields['lexer'].initial = request.GET['l']
|
||||
|
||||
def clean_content(self):
|
||||
import ipdb, os; os.system("stty sane"); ipdb.set_trace()
|
||||
content = self.cleaned_data.get('content', '')
|
||||
if content.strip() == '':
|
||||
raise forms.ValidationError(_('This field is required.'))
|
||||
|
|
Loading…
Reference in a new issue