Commit 8ceb372aea92662cf9b186ff0f3fd1e47eaea545
1 parent
514eddc5
Minor fixes.
Showing
1 changed file
with
6 additions
and
6 deletions
dictionary/ajax_lemma_view.py
... | ... | @@ -404,17 +404,17 @@ def get_ctrl_preview(request, id): |
404 | 404 | @ajax(method='get', encode_result=False) |
405 | 405 | def get_lemma_examples(request, id): |
406 | 406 | selected_lemma = Lemma.objects.get(id=id) |
407 | - lemma_nkjp_examples = selected_lemma.lemma_nkjp_examples.order_by('source__priority', | |
408 | - 'opinion__priority', | |
409 | - 'sentence') | |
410 | - lemma_nkjp_examples_js = nkjpLemmaExamplesObjToJs(lemma_nkjp_examples, request.user, selected_lemma) | |
407 | +# lemma_nkjp_examples = selected_lemma.lemma_nkjp_examples.order_by('source__priority', | |
408 | +# 'opinion__priority', | |
409 | +# 'sentence') | |
410 | +# lemma_nkjp_examples_js = nkjpLemmaExamplesObjToJs(lemma_nkjp_examples, request.user, selected_lemma) | |
411 | 411 | # sprawdz czy uzytkownik jest wlascicielem wybranego hasla |
412 | 412 | can_modify = user_can_modify(selected_lemma, request.user) |
413 | - json_lemma_nkjp_examples = json_encode(lemma_nkjp_examples_js) | |
413 | + #json_lemma_nkjp_examples = json_encode(lemma_nkjp_examples_js) | |
414 | 414 | add_nkjp_form = AddNkjpExampleForm() |
415 | 415 | |
416 | 416 | return {'add_nkjp_form': add_nkjp_form, |
417 | - 'lemma_nkjp_examples': json_lemma_nkjp_examples, | |
417 | + #'lemma_nkjp_examples': json_lemma_nkjp_examples, | |
418 | 418 | 'can_modify': can_modify} |
419 | 419 | |
420 | 420 | ############################ semantics ################################### |
... | ... |