Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
0f006d32
Commit
0f006d32
authored
May 29, 2017
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
280acb2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
views.cpython-35.pyc
sidtSite/catalog/__pycache__/views.cpython-35.pyc
+0
-0
views.py
sidtSite/catalog/views.py
+6
-1
No files found.
sidtSite/catalog/__pycache__/views.cpython-35.pyc
View file @
0f006d32
No preview for this file type
sidtSite/catalog/views.py
View file @
0f006d32
from
django.shortcuts
import
render
from
django.views
import
generic
# Create your views here.
from
.models
import
Book
,
Author
,
BookInstance
,
Genre
...
...
@@ -21,3 +21,8 @@ def index(request):
'index.html'
,
context
=
{
'num_books'
:
num_books
,
'num_instances'
:
num_instances
,
'num_instances_available'
:
num_instances_available
,
'num_authors'
:
num_authors
},
)
class
BookListView
(
generic
.
ListView
):
model
=
Book
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment