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

update db

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