Skip to content

Commit

Permalink
Merge pull request #10872 from Ostap-Zherebetskyi/fix/preprint_subjects
Browse files Browse the repository at this point in the history
[ENG-6791] Fixed preprint subjects
  • Loading branch information
cslzchen authored Dec 26, 2024
2 parents a1ab30d + 687249a commit 5fee1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osf/models/preprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def create_version(cls, create_from_guid, auth):

# Prepare data to clone/update
data_for_update = {
'subjects': [[el] for el in source_preprint.subjects.all().values_list('_id', flat=True)],
'subjects': [el for el in source_preprint.subjects.all().values_list('_id', flat=True)],
'tags': source_preprint.tags.all().values_list('name', flat=True),
'original_publication_date': source_preprint.original_publication_date,
'custom_publication_citation': source_preprint.custom_publication_citation,
Expand Down

0 comments on commit 5fee1e3

Please sign in to comment.