Skip to content

Commit

Permalink
#1590 order is now a deafult to avoid conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers committed Sep 29, 2020
1 parent 850b509 commit 2965bec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/repository/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,9 @@ def add_supplementary_file(self, supplementary):
label=supplementary.cleaned_data['label'],
url=supplementary.cleaned_data['url'],
preprint=self,
order=self.next_supp_file_order(),
defaults={
'order': self.next_supp_file_order()
},
)

def next_supp_file_order(self):
Expand Down

0 comments on commit 2965bec

Please sign in to comment.