Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
DIGIPUS
Commits
f77573c6
Commit
f77573c6
authored
Apr 30, 2020
by
Mika dabelza abi
Browse files
[GREEN] fixing tests caused by debugging lines
parent
34c3c465
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views.py
View file @
f77573c6
...
...
@@ -26,9 +26,11 @@ class DaftarKatalog(TemplateView):
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
context
=
self
.
get_context_data
(
**
kwargs
)
context
[
"kategori_list"
]
=
Category
.
objects
.
all
()
print
(
Materi
.
objects
.
get
(
pk
=
1
).
status
[
0
])
context
[
"materi_list"
]
=
Materi
.
objects
.
all
().
filter
(
status
=
"(
\"
APPROVE
\"
,
\"
Diterima
\"
)"
)
try
:
context
[
"materi_list"
]
=
Materi
.
objects
.
all
().
filter
(
status
=
"(
\"
APPROVE
\"
,
\"
Diterima
\"
)"
)
except
:
context
[
"materi_list"
]
=
None
getSearch
=
request
.
GET
.
get
(
'search'
)
if
getSearch
:
list
=
Materi
.
objects
.
filter
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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