ImageRenditionField returns a relative URL

The example in the docs shows an absolute URL with the site's hostname, but the ImageRenditionField returns a relative URL. 

Relevant source here: https://github.com/wagtail/wagtail/blob/master/wagtail/images/api/fields.py
pull/5306/head
Michael Bunsen 2019-05-17 16:44:32 -07:00 zatwierdzone przez GitHub
rodzic 70a749b10a
commit b06cb6a6eb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -238,7 +238,7 @@ This would add the following to the JSON:
"height": 1125
},
"feed_image_thumbnail": {
"url": "http://www.example.com/media/images/a_test_image.fill-100x100.jpg",
"url": "/media/images/a_test_image.fill-100x100.jpg",
"width": 100,
"height": 100
}