Commit dbf59416fe4cbc9bc5236b077f91e399c5552ebb
1 parent
84fcdda4
Bugfix for duplicating frame opinions while saving schemas.
Showing
1 changed file
with
1 additions
and
1 deletions
dictionary/ajax_lemma_view.py
... | ... | @@ -2412,7 +2412,7 @@ def save_new_frames(request, data, id, examples, lemma_examples): |
2412 | 2412 | frame['is_phraseologic'] and not frame_obj.has_phraseologic_arguments()): |
2413 | 2413 | continue |
2414 | 2414 | # dodawanie opinii o ramce |
2415 | - if frame['opinion']: | |
2415 | + if frame['opinion'] and not new_lemma_ver.frame_opinions.filter(frame=frame_obj).exists(): | |
2416 | 2416 | frame_opinion_val = Frame_Opinion_Value.objects.get(value=frame['opinion']) |
2417 | 2417 | try: |
2418 | 2418 | frame_opinion_obj = Frame_Opinion.objects.get(frame=frame_obj, |
... | ... |