Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ARFA
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARFA
ARFA
Commits
0a4a3412
Commit
0a4a3412
authored
Nov 26, 2018
by
NARRA SURAJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added comments
parent
22db66fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
ARFA/ARFA_app/views.py
ARFA/ARFA_app/views.py
+10
-6
No files found.
ARFA/ARFA_app/views.py
View file @
0a4a3412
...
...
@@ -433,7 +433,6 @@ def view_all_question(request):
args
.
update
(
request
.
session
.
get
(
'args'
,
None
))
return
render
(
request
,
'ARFA_app/view_all_question.html'
,
args
)
# def create_Test(request):
# if(request.session.get('session',None)!=True):
# return render(request,'ARFA_app/login.html')
...
...
@@ -524,6 +523,10 @@ def create_Test(request):
if
not
data
:
#only csrf token was sent, display create test page
return
render
(
request
,
'ARFA_app/create_Test.html'
,
args
)
print
data
form
=
forms
.
TestForm
(
request
.
POST
)
#A failed attempt to make html datetimeinput work.
#refer to this when you want to try again.
# """dirty workaround"""
# #the data in request.POST must be modified to be valid in the form
...
...
@@ -536,15 +539,16 @@ def create_Test(request):
# #see form cleanup for a potentially better solution
# qdict = QueryDict("", mutable=True)
# qdict.update(data)
form
=
forms
.
TestForm
(
request
.
POST
)
# form2 = forms.TestForm(request.POST)
# print "form2:"
# print vars(form2)
# print "\n\n\n"
print
"start time"
print
form
print
vars
(
form
)
# #debug
# print "start time"
# print form
# print vars(form)
# #debug
if
form
.
is_valid
():
test
=
form
.
save
()
...
...
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