Update views.py
This commit is contained in:
1 parent
1f4c97aa3d
commit
3fd589ffcf
1 file changed
+2
-2
@@ -93,7 +93,7 @@ class VoteCreate(APIView):
|
||||
question = Question(
|
||||
question=question_data['text'],
|
||||
vote=vote,
|
||||
file=question_data['image'],
|
||||
# file=question_data['image'],
|
||||
numb=count,
|
||||
settings=question_data.get('settings', {}),
|
||||
)
|
||||
@@ -101,7 +101,7 @@ class VoteCreate(APIView):
|
||||
for answer in question_data['answers']:
|
||||
Answer(
|
||||
answer=answer['text'],
|
||||
file=answer['image'],
|
||||
# file=answer['image'],
|
||||
question=question
|
||||
).save()
|
||||
|
||||
|
||||
Reference in new issue
Block a user