File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ <h5>Move the question to:</h5>
262262 < div class ="col-lg-4 col-md-4 col-sm-4 col-xs-4 ">
263263 < select id ="id_category " class ="form-control ">
264264 {%for a_foss in category %}
265- < option value ={{a_foss.foss}} > {{a_foss.foss}}</ option >
265+ < option value =" {{a_foss.foss}} " > {{a_foss.foss}}</ option >
266266 {% endfor %}
267267 </ select >
268268 </ div >
@@ -284,8 +284,8 @@ <h5>Move the question to:</h5>
284284 </ div > <!-- /.row -->
285285 < hr >
286286 < div class ="pull-right ">
287- < a id ="question-details-ok " class ="btn btn-sm btn-success hideme " data-qid ={{ question.id }} href =" # "> Ok</ a >
288- < a class ="btn btn-sm btn-default " data-dismiss ="modal " href =" # "> Close</ a >
287+ < a id ="question-details-ok " class ="btn btn-sm btn-success hideme " data-qid ={{ question.id }} onclick =" window.location.reload() "> Ok</ a >
288+ < a class ="btn btn-sm btn-default " data-dismiss ="modal " onclick =" window.location.reload() "> Close</ a >
289289 </ div >
290290 < div class ="clearfix "> </ div >
291291 </ div > <!-- /.modal-body -->
Original file line number Diff line number Diff line change @@ -435,7 +435,9 @@ def ajax_details_update(request):
435435 if request .method == 'POST' :
436436 qid = request .POST ['qid' ]
437437 category = request .POST ['category' ]
438+ category = category .replace (' ' , '-' )
438439 tutorial = request .POST ['tutorial' ]
440+ tutorial = tutorial .replace (' ' , '-' )
439441 minute_range = request .POST ['minute_range' ]
440442 second_range = request .POST ['second_range' ]
441443 question = get_object_or_404 (Question , pk = qid )
You can’t perform that action at this time.
0 commit comments