Removes stray print
This commit is contained in:
parent
dd3850a3ba
commit
d7a54b0b10
|
@ -70,7 +70,6 @@ def related_status(notification):
|
||||||
@register.simple_tag(takes_context=True)
|
@register.simple_tag(takes_context=True)
|
||||||
def active_shelf(context, book):
|
def active_shelf(context, book):
|
||||||
"""check what shelf a user has a book on, if any"""
|
"""check what shelf a user has a book on, if any"""
|
||||||
print(hasattr(book, "current_shelves"))
|
|
||||||
if hasattr(book, "current_shelves"):
|
if hasattr(book, "current_shelves"):
|
||||||
return book.current_shelves[0] if len(book.current_shelves) else {"book": book}
|
return book.current_shelves[0] if len(book.current_shelves) else {"book": book}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue