From 4d21889e049f96d5a4bd54d04295ff5065a4fed5 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 18 Oct 2021 15:40:06 +0100 Subject: [PATCH] update django, use url instead of _get_url --- oxdata/cover/models.py | 2 +- oxdata/poster/models.py | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oxdata/cover/models.py b/oxdata/cover/models.py index 476b3d3..8470809 100644 --- a/oxdata/cover/models.py +++ b/oxdata/cover/models.py @@ -20,7 +20,7 @@ def getCovers(isbn, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1): cover = p.get() if cover: pjson = {} - pjson['url'] = url_prefix + cover._get_url() + pjson['url'] = url_prefix + cover.url pjson['width'] = cover.width pjson['height'] = cover.height if p.site not in ['other', 'wikipedia.org'] or limit(cover.width, cover.height): diff --git a/oxdata/poster/models.py b/oxdata/poster/models.py index 7984fad..33e3e18 100644 --- a/oxdata/poster/models.py +++ b/oxdata/poster/models.py @@ -39,7 +39,7 @@ def getPosters(movie_id, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1): poster = None if poster: pjson = {} - pjson['url'] = url_prefix + poster._get_url() + pjson['url'] = url_prefix + poster.url pjson['width'] = poster.width pjson['height'] = poster.height if p.site not in ['other', 'wikipedia.org'] or limit(poster.width, poster.height): diff --git a/requirements.txt b/requirements.txt index 446c94e..c7649bd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django==1.9.9 +Django<2 celery==3.1.23 django-celery==3.1.17 django-extensions==1.7.4