Merge branch 'main' into question_invite_correct
This commit is contained in:
@ -58,8 +58,12 @@ class Editions(View):
|
||||
)
|
||||
|
||||
paginated = Paginator(editions, PAGE_LENGTH)
|
||||
page = paginated.get_page(request.GET.get("page"))
|
||||
data = {
|
||||
"editions": paginated.get_page(request.GET.get("page")),
|
||||
"editions": page,
|
||||
"page_range": paginated.get_elided_page_range(
|
||||
page.number, on_each_side=2, on_ends=1
|
||||
),
|
||||
"work": work,
|
||||
"languages": languages,
|
||||
"formats": set(
|
||||
|
@ -85,9 +85,7 @@ class CreateStatus(View):
|
||||
if hasattr(status, "quote"):
|
||||
status.raw_quote = status.quote
|
||||
|
||||
if not status.sensitive and status.content_warning:
|
||||
# the cw text field remains populated when you click "remove"
|
||||
status.content_warning = None
|
||||
status.sensitive = status.content_warning not in [None, ""]
|
||||
status.save(broadcast=False)
|
||||
|
||||
# inspect the text for user tags
|
||||
|
Reference in New Issue
Block a user