mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Add Catalogs views, but still need to fix templates (use books for now)
This commit is contained in:
@@ -15,6 +15,8 @@ from portal.views import (
|
||||
Types,
|
||||
Books,
|
||||
GetBook,
|
||||
Catalogs,
|
||||
GetCatalog,
|
||||
SearchObjects,
|
||||
)
|
||||
|
||||
@@ -98,6 +100,21 @@ urlpatterns = [
|
||||
name="books_pagination"
|
||||
),
|
||||
path("bookshelf/book/<uuid:uuid>", GetBook.as_view(), name="book"),
|
||||
path(
|
||||
"bookshelf/catalogs",
|
||||
Catalogs.as_view(template="bookshelf/books.html"),
|
||||
name="catalogs"
|
||||
),
|
||||
path(
|
||||
"bookshelf/catalogs/page/<int:page>",
|
||||
Catalogs.as_view(template="bookshelf/books.html"),
|
||||
name="catalogs_pagination"
|
||||
),
|
||||
path(
|
||||
"bookshelf/catalog/<uuid:uuid>",
|
||||
GetCatalog.as_view(),
|
||||
name="catalog"
|
||||
),
|
||||
path(
|
||||
"search",
|
||||
SearchObjects.as_view(http_method_names=["post"]),
|
||||
|
Reference in New Issue
Block a user