修复评论bug

sh_branch
liangliangyy 9 years ago
parent 29714c9278
commit 1629d09088

3
.gitignore vendored

@ -70,4 +70,5 @@ collectedstatic/
DjangoBlog/whoosh_index/
google93fd32dbd906620a.html
baidu_verify_FlHL7cUyC9.html
BingSiteAuth.xml
BingSiteAuth.xml
cb9339dbe2ff86a5aa169d28dba5f615.txt

@ -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'}

@ -1,8 +1,9 @@
<footer id="colophon" role="contentinfo">
<div class="site-info">
<div class="site-info" style="text-align: center">
Copyright&copy;&nbsp;2017&nbsp;
<a href="{{ SITE_BASE_URL }}" target="blank">{{ SITE_NAME }}</a>
&nbsp;|&nbsp;
<a href="{{ SITE_BASE_URL }}sitemap.xml" title="SiteMap" target="_blank">
SiteMap
</a>
@ -16,4 +17,13 @@
{% include 'share_layout/analyticscode.html' %}
</div>
</footer><!-- #colophon -->
<div class="site-info" style="text-align: center">
Powered by
<a href="https://www.djangoproject.com/" rel="nofollow" target="blank">Django</a>
&nbsp;|&nbsp;
<a href="https://github.com/liangliangyy/DjangoBlog" rel="nofollow" target="blank"> LiangLiangyy</a>
</div>
</footer><!-- #colophon -->

Loading…
Cancel
Save