fix attachment

This commit is contained in:
alafin 2009-04-21 20:45:03 +03:00
parent a77209fb52
commit fea85cd2dd
2 changed files with 2 additions and 3 deletions
apps/forum
forms.py
templates/forum

View file

@ -47,8 +47,7 @@ SEARCH_IN_CHOICES = (
class AddPostForm(forms.ModelForm):
name = forms.CharField(label=_('Subject'),
widget=forms.TextInput(attrs={'size':'115'}))
attachment = forms.FileField(label=_('Attachment'), required=False,
widget=forms.FileInput(attrs={'size':'115'}))
attachment = forms.FileField(label=_('Attachment'), required=False)
class Meta:
model = Post

View file

@ -2,7 +2,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<title>DjangoBB demo</title>
<title>Django Bulletin Board</title>
<meta name="description" content="DjangoBB demo" />
<meta name="keywords" content="DjangoBB" />