Fix CommentaryFactory so that it has a valid url
The url is based off of the DOI. Because the DOI is always the same, making more than one factory instance crashes the detail page. UnpublishedVettedCommentaryFactory does not have this problem, as it has an empty DOI field and a valid (random) arxiv identifier.
Showing
- SciPost_v1/settings.py 5 additions, 1 deletionSciPost_v1/settings.py
- commentaries/factories.py 12 additions, 4 deletionscommentaries/factories.py
- common/helpers/__init__.py 11 additions, 0 deletionscommon/helpers/__init__.py
- submissions/factories.py 1 addition, 13 deletionssubmissions/factories.py
Please register or sign in to comment