Skip to content

Commit

Permalink
fixing data.get
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosptf committed Jul 17, 2019
1 parent d0a448b commit 9ab0245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quokka/core/content/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def url_for_content(content, include_ext=True):
data = content

category_slug_data = data.get('category_slug')
category_data = slugify_category(data.get('category') or '')
category_data = slugify_category(data.get('category', ''))
category_slug = (
category_slug_data or category_data
)
Expand Down

0 comments on commit 9ab0245

Please sign in to comment.