Skip to content

Commit 6207be3

Browse files
ben-beauhurstclaudep
authored andcommitted
Replace linklist["object"].id with generalized linklist["object"].pk, for cases where PK is not .id.
1 parent c3523c8 commit 6207be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linkcheck/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def find_all_links(linklists=None):
183183
linklists = linklist_cls().get_linklist()
184184

185185
for linklist in linklists:
186-
object_id = linklist["object"].id
186+
object_id = linklist["object"].pk
187187
urls = linklist["urls"] + linklist["images"]
188188
if urls:
189189
new = update_urls(urls, content_type, object_id)

0 commit comments

Comments
 (0)