Skip to content

Commit

Permalink
fix: save entity with modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Apr 16, 2024
1 parent f4b4271 commit 4ce8967
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apis_ontology/management/commands/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def import_entities(entities=[]):
text_to_entity_mapping[key] = {"entity_id": newentity.id, "field_name": field.name}
if not done:
print(entity_text)
newentity.save()

newentity.title.add(*titlelist)
newentity.profession.add(*professionlist)
Expand Down

0 comments on commit 4ce8967

Please sign in to comment.