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

bulk upload

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