mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Web bookshelf first draft
This commit is contained in:
@@ -14,6 +14,7 @@ from portal.utils import get_site_conf
|
||||
from portal.models import Flatpage
|
||||
from roster.models import RollingStock
|
||||
from consist.models import Consist
|
||||
from bookshelf.models import Book
|
||||
from metadata.models import Company, Manufacturer, Scale, RollingStockType, Tag
|
||||
|
||||
|
||||
@@ -340,6 +341,13 @@ class Types(GetData):
|
||||
self.data = RollingStockType.objects.all()
|
||||
|
||||
|
||||
class Books(GetData):
|
||||
def __init__(self):
|
||||
self.title = "Books"
|
||||
self.template = "books.html"
|
||||
self.data = Book.objects.all()
|
||||
|
||||
|
||||
class GetFlatpage(View):
|
||||
def get(self, request, flatpage):
|
||||
try:
|
||||
|
Reference in New Issue
Block a user