Commit aa53d2665d0cc90a27fdad5dfd1d935539b37146
1 parent
f8298e06
updated script to match database functions
Showing
1 changed file
with
6 additions
and
4 deletions
semantics/management/commands/connect_frames_to_entries.py
... | ... | @@ -19,8 +19,10 @@ class Command(BaseCommand): |
19 | 19 | def connect_frames(): |
20 | 20 | entries = Entry.objects.all() |
21 | 21 | for entry in entries: |
22 | - frames = entry.actual_frames() | |
23 | - for frame in frames: | |
24 | - frame.entry = entry | |
25 | - frame.save() | |
22 | + meanings = entry.meanings.all() | |
23 | + for meaning in meanings: | |
24 | + frames = meaning.frames.all() | |
25 | + for frame in frames: | |
26 | + frame.entry = entry | |
27 | + frame.save() | |
26 | 28 | |
... | ... |