Commit d11a53dd authored by okhin's avatar okhin 🚴

Fix the importers. Tests are broken though.

parent bce2c38c
Pipeline #828 failed with stages
in 42 seconds
......@@ -30,7 +30,7 @@ class Importer(models.Model):
def kind(self):
if self.url is None and self.file.name is None:
return None
if self.url is None:
if self.url is '':
return 'file'
else:
return 'url'
......
......@@ -16,7 +16,7 @@ requires = [
setup(name='picampaign',
namespace_packages=['picampaign'],
version='0.0.4',
version='0.0.5',
description='PiPhone Campaign Manager.',
long_description=README,
classifiers=["Programming Language :: Python"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment