FIX: Don't strip initial indentation in content.
This commit is contained in:
parent
a01e9e6c9b
commit
5b75f2e4a3
|
@ -1,11 +1,15 @@
|
|||
from webtools import settings
|
||||
from django import forms
|
||||
from django.forms import ModelForm
|
||||
from django.forms import ModelForm, CharField
|
||||
from .models import Paste, Language, EXPIRE_CHOICES
|
||||
|
||||
|
||||
class PasteForm(ModelForm):
|
||||
"""Paste model form."""
|
||||
content = CharField(max_length=settings.PASTE['max_characters'],
|
||||
strip=False,
|
||||
widget=forms.Textarea)
|
||||
|
||||
class Meta:
|
||||
model = Paste
|
||||
fields = ['language', 'title', 'password', 'content', 'lifetime',
|
||||
|
|
Loading…
Reference in New Issue