Commit 2e96c6fb authored by Mario Chirinos's avatar Mario Chirinos

update db

parent 65e58256
...@@ -73,11 +73,10 @@ class Command(BaseCommand): ...@@ -73,11 +73,10 @@ class Command(BaseCommand):
newPublisher.type="texto" newPublisher.type="texto"
newPublisher.save() newPublisher.save()
publisher = Publisher.objects.all().filter(shortName=p) publisher = Publisher.objects.all().filter(shortName=p)
else
publisher=publisher[0] publisher=publisher[0]
print(publisher)
continue
news = News.objects.all().filter(publisher=publisher.id).order_by("-date") news = News.objects.all().filter(publisher=publisher.id).order_by("-date")
minYear = 0 minYear = 0
lastDate = datetime.datetime(1950,1,1) lastDate = datetime.datetime(1950,1,1)
......
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