Workaround RTD error to generate the API pages
This commit is contained in:
1 parent
7d506ed6af
commit
fab687c218
1 file changed
+4
-1
@@ -9,5 +9,8 @@ Please see LICENSE and AUTHORS for more information.
|
|||||||
|
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
|
try:
|
||||||
|
__version__ = pkg_resources.require("django-polymorphic")[0].version
|
||||||
|
except pkg_resources.DistributionNotFound:
|
||||||
|
__version__ = None # for RTD among others
|
||||||
|
|
||||||
__version__ = pkg_resources.require("django-polymorphic")[0].version
|
|
||||||
Reference in new issue
Block a user