From 1629d090886bb6149532622ed65ea601314fd9a8 Mon Sep 17 00:00:00 2001 From: liangliangyy Date: Mon, 16 Jan 2017 14:45:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=84=E8=AE=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- comments/forms.py | 2 +- templates/share_layout/footer.html | 14 ++++++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f6d5bcc..6716f46 100644 --- a/.gitignore +++ b/.gitignore @@ -70,4 +70,5 @@ collectedstatic/ DjangoBlog/whoosh_index/ google93fd32dbd906620a.html baidu_verify_FlHL7cUyC9.html -BingSiteAuth.xml \ No newline at end of file +BingSiteAuth.xml +cb9339dbe2ff86a5aa169d28dba5f615.txt diff --git a/comments/forms.py b/comments/forms.py index 1790954..afb750c 100644 --- a/comments/forms.py +++ b/comments/forms.py @@ -43,7 +43,7 @@ class LoginCommentForm(ModelForm): class CommentForm(ModelForm): url = forms.URLField(label='网址', required=False) - email = forms.EmailField(label='电子邮箱', required=False) + email = forms.EmailField(label='电子邮箱', required=True) name = forms.CharField(label='姓名', widget=forms.TextInput(attrs= {'value': "", 'size': "30", 'maxlength': "245", 'aria-required': 'true'} diff --git a/templates/share_layout/footer.html b/templates/share_layout/footer.html index bbcbf66..6871e72 100644 --- a/templates/share_layout/footer.html +++ b/templates/share_layout/footer.html @@ -1,8 +1,9 @@ \ No newline at end of file +
+ Powered by + Django +  |  + LiangLiangyy + +
+ + +