|
@@ -70,7 +70,10 @@ def make_category(article, slug):
|
|
|
|
|
|
# Setting a category's name resets its slug, so do that first.
|
|
# Setting a category's name resets its slug, so do that first.
|
|
category.name = article.title
|
|
category.name = article.title
|
|
- category.slug = slug
|
|
|
|
|
|
+ try:
|
|
|
|
+ category.slug = slug
|
|
|
|
+ except AttributeError:
|
|
|
|
+ category._slug = slug
|
|
|
|
|
|
# Description from article text.
|
|
# Description from article text.
|
|
# XXX Relative URLs in the article content may not be handled correctly.
|
|
# XXX Relative URLs in the article content may not be handled correctly.
|