This website works better with JavaScript.
Home
Explore
Help
Sign In
lu-my-works
/
patstavigais181121
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
return template for get_visit
main
Your Name
4 years ago
parent
aaf2b15de7
commit
d7400673c9
1 changed files
with
9 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-1
uzdevumi/views.py
+ 9
- 1
uzdevumi/views.py
View File
@ -24,7 +24,15 @@ def get_visit(request, visit_id):
visit
=
Visit
.
objects
.
get
(
id
=
visit_id
)
return
HttpResponse
(
visit_id
)
context
=
{
'
visit
'
:
visit
,
}
return
render
(
request
,
template_name
=
'
visit.html
'
,
context
=
context
,
)
def
add_visit
(
request
)
:
Write
Preview
Loading…
Cancel
Save