Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1659 | Mapping initial version to have the …
Browse files Browse the repository at this point in the history
…right updated_by:
  • Loading branch information
snyaggarwal committed Sep 28, 2023
1 parent dd552d4 commit b72d955
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/mappings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def build(cls, map_type, from_concept, to_concept, **kwargs):
@classmethod
def create_initial_version(cls, mapping, **kwargs):
initial_version = mapping.clone()
initial_version.created_by = initial_version.updated_by = mapping.created_by
initial_version.comment = mapping.comment
initial_version.save(**kwargs)
initial_version.version = initial_version.id
Expand Down

0 comments on commit b72d955

Please sign in to comment.