Add editions view
This commit is contained in:
parent
1d99e455e8
commit
c67f92af46
7 changed files with 196 additions and 77 deletions
|
@ -11,7 +11,7 @@ from django.template.response import TemplateResponse
|
|||
from django.views import View
|
||||
from django.views.decorators.http import require_POST
|
||||
|
||||
from bookwyrm import models
|
||||
from bookwyrm import forms, models
|
||||
from bookwyrm.activitypub import ActivitypubResponse
|
||||
from bookwyrm.settings import PAGE_LENGTH
|
||||
from bookwyrm.views.helpers import is_api_request
|
||||
|
@ -61,6 +61,7 @@ class Editions(View):
|
|||
data = {
|
||||
"editions": paginated.get_page(request.GET.get("page")),
|
||||
"work": work,
|
||||
"work_form": forms.EditionFromWorkForm(instance=work),
|
||||
"languages": languages,
|
||||
"formats": set(
|
||||
e.physical_format.lower() for e in editions if e.physical_format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue