Workaround RTD error to generate the API pages

fix_request_path_info
Diederik van der Boor 2017-09-30 18:47:03 +02:00
parent 7d506ed6af
commit fab687c218
1 changed files with 4 additions and 1 deletions

View File

@ -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 __version__ = pkg_resources.require("django-polymorphic")[0].version
except pkg_resources.DistributionNotFound:
__version__ = None # for RTD among others