Commit a94919ef authored by Mario Chirinos's avatar Mario Chirinos

bulk upload

parent f57784c3
...@@ -46,7 +46,7 @@ class Command(BaseCommand): ...@@ -46,7 +46,7 @@ class Command(BaseCommand):
newPublisher.url=cfgfile["url"] newPublisher.url=cfgfile["url"]
newPublisher.type="texto" newPublisher.type="texto"
newPublisher.save() newPublisher.save()
publisher = Publisher.objects.get(shortName=p) publisher = Publisher.objects.filter(shortName=p)[0]
else: else:
print("settings.json not found") print("settings.json not found")
else: else:
......
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