Commit 682b7f2ac7a836fb23cd1c92371b6e2a12cf3a0b

Authored by Bartłomiej Nitoń
1 parent 8ceb372a

Minor bugfix.

Showing 1 changed file with 10 additions and 10 deletions
dictionary/ajax_lemma_view.py
... ... @@ -277,12 +277,12 @@ def get_arg_id(request, text_rep):
277 277 @ajax(method='get', encode_result=False)
278 278 def get_lemma_preview(request, id, main_lemma_id):
279 279 selected_lemma = Lemma.objects.get(id=id)
280   - new_frames = selected_lemma.frames.order_by('text_rep')
  280 + #new_frames = selected_lemma.frames.order_by('text_rep')
281 281  
282   - serialized_frames = []
283   - for frame in new_frames:
284   - serialized_frames.append(frameObjToSerializableDict(selected_lemma, frame))
285   - json_frames = json_encode(serialized_frames)
  282 + #serialized_frames = []
  283 + #for frame in new_frames:
  284 + # serialized_frames.append(frameObjToSerializableDict(selected_lemma, frame))
  285 + #json_frames = json_encode(serialized_frames)
286 286  
287 287 frame_char_models = Frame_Char_Model.objects.order_by('priority')
288 288 frame_char_prior_model_vals = frame_char_models[0].frame_char_values.all()
... ... @@ -294,16 +294,16 @@ def get_lemma_preview(request, id, main_lemma_id):
294 294 json_frame_char_list = json_encode(frame_char_list)
295 295  
296 296 # konwertowanie przykladow na zrozumiale przez java sript
297   - nkjp_examples = selected_lemma.nkjp_examples.all()
298   - nkjp_examples_js = nkjpExamplesObjToJs(nkjp_examples, request.user, selected_lemma)
  297 + #nkjp_examples = selected_lemma.nkjp_examples.all()
  298 + #nkjp_examples_js = nkjpExamplesObjToJs(nkjp_examples, request.user, selected_lemma)
299 299  
300   - json_nkjp_examples = json_encode(nkjp_examples_js)
  300 + #json_nkjp_examples = json_encode(nkjp_examples_js)
301 301  
302 302 similarLemmasNewForm = SimilarLemmasNewForm(statuses=Lemma_Status.objects.order_by('priority'))
303 303  
304   - return {'serialized_frames': json_frames,
  304 + return {#'serialized_frames': json_frames,
305 305 'frame_char_list': json_frame_char_list,
306   - 'nkjp_examples': json_nkjp_examples,
  306 + #'nkjp_examples': json_nkjp_examples,
307 307 'selected_lemma': selected_lemma,
308 308 'similarLemmasNewForm': similarLemmasNewForm}
309 309  
... ...