Commit 7bbd803e authored by Mario Chirinos's avatar Mario Chirinos

bulk upload

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