Release notes for beta releases are stored with the non-beta version number (e.g. release notes for version 1.87.0.beta1 will have a filename 1_87_0.adoc, not 1_87_0_beta1.adoc).
Adds a non_beta_slug property
Uses it when fetching release notes
Hopefully fixes #1171 (untested with actual files)
Manual testing in terminal
In [1]: from versions.releases import get_release_notes_for_version_github
In [2]: v = Version.objects.first()
In [3]: v.slug
Out[3]: 'boost-1-86-0'
In [4]: v.slug += "-beta1"
In [5]: v.save()
In [6]: content = get_release_notes_for_version_github(v.pk)
In [7]: content[:10]
Out[7]: b'<!DOCTYPE '
Release notes for beta releases are stored with the non-beta version number (e.g. release notes for version
1.87.0.beta1
will have a filename1_87_0.adoc
, not1_87_0_beta1.adoc
).non_beta_slug
propertyManual testing in terminal