##// END OF EJS Templates
Making tags lower case.
neko259 -
r199:1b4fd6ab default
parent child Browse files
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)
@@ -211,4 +211,4 b' POSTING_DELAY = 30 # seconds'
211
211
212 # Debug mode middlewares
212 # Debug mode middlewares
213 if DEBUG:
213 if DEBUG:
214 MIDDLEWARE_CLASSES += ( 'boards.profiler.ProfilerMiddleware', )
214 MIDDLEWARE_CLASSES += ( 'boards.profiler.ProfilerMiddleware', )
General Comments 0
You need to be logged in to leave comments. Login now