Show More
@@ -1,4 +1,5 b'' | |||||
1 | import hashlib |
|
1 | import hashlib | |
|
2 | import string | |||
2 | from django.core.urlresolvers import reverse |
|
3 | from django.core.urlresolvers import reverse | |
3 | from django.http import HttpResponseRedirect |
|
4 | from django.http import HttpResponseRedirect | |
4 | from django.template import RequestContext |
|
5 | from django.template import RequestContext | |
@@ -77,7 +78,7 b' def _new_post(request, form, thread_id=b' | |||||
77 | if tag_strings: |
|
78 | if tag_strings: | |
78 | tag_strings = tag_strings.split(' ') |
|
79 | tag_strings = tag_strings.split(' ') | |
79 | for tag_name in tag_strings: |
|
80 | for tag_name in tag_strings: | |
80 | tag_name = tag_name.strip() |
|
81 | tag_name = string.lower(tag_name.strip()) | |
81 | if len(tag_name) > 0: |
|
82 | if len(tag_name) > 0: | |
82 | tag, created = Tag.objects.get_or_create(name=tag_name) |
|
83 | tag, created = Tag.objects.get_or_create(name=tag_name) | |
83 | tags.append(tag) |
|
84 | tags.append(tag) |
General Comments 0
You need to be logged in to leave comments.
Login now