Revision 71b9f1ac
b/cloudcms/forms.py | ||
---|---|---|
192 | 192 |
# the faq/guide content |
193 | 193 |
if data_type == 'faq': |
194 | 194 |
logger.info('Processing FAQ entry, %s, %s, %s', service, slug, title) |
195 |
cat = add_or_update_faq_category(category[0], category[1]) |
|
195 |
cat = add_or_update_faq_category(unicode(category[0]), |
|
196 |
unicode(category[1])) |
|
196 | 197 |
question = add_or_update_faq_question(user, service, cat, slug, \ |
197 | 198 |
title, html_content) |
198 | 199 |
|
... | ... | |
273 | 274 |
q.category = category |
274 | 275 |
q.service = service |
275 | 276 |
q.slug = slug |
276 |
q.title = title
|
|
277 |
q.title = unicode(title)
|
|
277 | 278 |
q.save() |
278 | 279 |
q.application = [Application.current()] |
279 | 280 |
q.save() |
... | ... | |
303 | 304 |
guide.is_active = True |
304 | 305 |
guide.service = service |
305 | 306 |
guide.slug = slug |
306 |
guide.title = title
|
|
307 |
guide.title = unicode(title)
|
|
307 | 308 |
guide.save() |
308 | 309 |
|
309 | 310 |
RawContentModel = UserGuideEntry.content_type_for(RawContent) |
Also available in: Unified diff