From e6989bf2fb49d9f3bcd630909eca55d4da424c42 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 4 Dec 2018 20:09:52 +0100
Subject: [PATCH] Fix identifier generator

---
 preprints/helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preprints/helpers.py b/preprints/helpers.py
index 596cf3a1c..1af7fba21 100644
--- a/preprints/helpers.py
+++ b/preprints/helpers.py
@@ -38,7 +38,7 @@ def generate_new_scipost_identifier(old_preprint=None):
         else:
             existing_identifier = str(existing_identifier + 1)
 
-        identifier = '{year}{month}_{identifier}v1'.format(
+        identifier = 'scipost_{year}{month}_{identifier}v1'.format(
             year=now.year, month=str(now.month).rjust(2, '0'),
             identifier=existing_identifier.rjust(5, '0'))
         return identifier, int(existing_identifier)
-- 
GitLab