mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-28 11:00:36 +00:00
Python formatting
This commit is contained in:
parent
5981575f0e
commit
cc4469e7e1
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
{% load cache %}
|
||||
|
||||
{% if request.user.is_authenticated %}
|
||||
{% cache 900 shelve_button request.user.id book.id %}
|
||||
{% cache shelve_button request.user.id book.id %}
|
||||
|
||||
{% with book.id|uuid as uuid %}
|
||||
{% active_shelf book as active_shelf %}
|
||||
|
|
|
@ -47,7 +47,9 @@ class ReadingStatus(View):
|
|||
return HttpResponseBadRequest()
|
||||
|
||||
# invalidate the template cache
|
||||
cache_key = make_template_fragment_key("shelve_button", [request.user.id, book_id])
|
||||
cache_key = make_template_fragment_key(
|
||||
"shelve_button", [request.user.id, book_id]
|
||||
)
|
||||
cache.delete(cache_key)
|
||||
|
||||
desired_shelf = get_object_or_404(
|
||||
|
|
Loading…
Reference in a new issue