def download(self):
from .tasks import download_file<EOL>if not settings.LOCALSHOP_ISOLATED:<EOL><INDENT>download_file.delay(pk=self.pk)<EOL><DEDENT>else:<EOL><INDENT>download_file(pk=self.pk)<EOL><DEDENT>
Start a celery task to download the release file from pypi.

        If `settings.LOCALSHOP_ISOLATED` is True then download the file
        in-process.