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

View file

@ -47,8 +47,7 @@ SEARCH_IN_CHOICES = (
class AddPostForm(forms.ModelForm): class AddPostForm(forms.ModelForm):
name = forms.CharField(label=_('Subject'), name = forms.CharField(label=_('Subject'),
widget=forms.TextInput(attrs={'size':'115'})) widget=forms.TextInput(attrs={'size':'115'}))
attachment = forms.FileField(label=_('Attachment'), required=False, attachment = forms.FileField(label=_('Attachment'), required=False)
widget=forms.FileInput(attrs={'size':'115'}))
class Meta: class Meta:
model = Post 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"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head> <head>
<title>DjangoBB demo</title> <title>Django Bulletin Board</title>
<meta name="description" content="DjangoBB demo" /> <meta name="description" content="DjangoBB demo" />
<meta name="keywords" content="DjangoBB" /> <meta name="keywords" content="DjangoBB" />