Mercurial > public > sg101
comparison news/forms.py @ 849:ff645a692791
For issue #79, use bleach to sanitize both user input markdown & html.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 30 Oct 2014 19:30:37 -0500 |
parents | ee87ea74d46b |
children | 19b86e684cc2 |
comparison
equal
deleted
inserted
replaced
848:32ebe22f0cad | 849:ff645a692791 |
---|---|
4 """ | 4 """ |
5 from django import forms | 5 from django import forms |
6 from django.conf import settings | 6 from django.conf import settings |
7 | 7 |
8 from news.models import PendingStory | 8 from news.models import PendingStory |
9 from news.models import Category | |
10 | 9 |
11 | 10 |
12 class AddNewsForm(forms.ModelForm): | 11 class AddNewsForm(forms.ModelForm): |
13 """Form for a user to submit a news story to the admins for review.""" | 12 """Form for a user to submit a news story to the admins for review.""" |
14 title = forms.CharField(widget=forms.TextInput(attrs={'size': 52})) | 13 title = forms.CharField(widget=forms.TextInput(attrs={'size': 52})) |