mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-18 04:01:11 +00:00
Remove repetition in link entity to dbhtml converter
This commit is contained in:
parent
b31260a501
commit
672e7090f0
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ def link_entity(props):
|
|||
|
||||
if id_ is not None:
|
||||
link_props['linktype'] = 'page'
|
||||
link_props['id'] = props.get('id')
|
||||
link_props['id'] = id_
|
||||
else:
|
||||
link_props['href'] = props.get('url')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue