Skip to content
Snippets Groups Projects
Verified Commit c6fc3cdf authored by Jake's avatar Jake :speech_balloon:
Browse files

let categories have no page associated

parent 67da27ab
No related branches found
No related tags found
No related merge requests found
......@@ -454,10 +454,11 @@ class Link:
if self.type == "slug":
return self.page.category
elif self.type == "tag":
if self.tag.is_category:
return self.tag
else:
raise Exception("category can only be called on category tags")
return self.tag
#if self.tag.is_category:
# return self.tag
#else:
# raise Exception("category can only be called on category tags")
else:
raise Exception("category is not allowed to be called here")
category = property(get_category, None, None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment