Return URL in document chooser response - fixes #2660

This commit is contained in:
Matt Westcott 2016-06-03 20:32:41 +01:00 committed by Mikalai Radchuk
parent 1479884773
commit 8f796cddfd
3 changed files with 3 additions and 0 deletions

View file

@ -15,6 +15,7 @@ Changelog
* Fix: Removing embedded media from rich text by mouse click action now gets correctly registered as a change to the field (Loic Teixeira)
* Fix: Rich text editor is no longer broken in InlinePanels (Matt Westcott, Yann Fouillat)
* Fix: Rich text editor is no longer broken in settings (Matt Westcott)
* Fix: Link tooltip now shows correct urls for newly inserted document links (Matt Westcott)
1.5 (31.05.2016)

View file

@ -18,3 +18,4 @@ Bug fixes
* Removing embedded media from rich text by mouse click action now gets correctly registered as a change to the field (Loic Teixeira)
* Rich text editor is no longer broken in InlinePanels (Matt Westcott, Yann Fouillat)
* Rich text editor is no longer broken in settings (Matt Westcott)
* Link tooltip now shows correct urls for newly inserted document links (Matt Westcott)

View file

@ -27,6 +27,7 @@ def get_document_json(document):
return json.dumps({
'id': document.id,
'title': document.title,
'url': document.url,
'edit_link': reverse('wagtaildocs:edit', args=(document.id,)),
})