File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def _reverse(*args, **kwargs):
61
61
form = CommentSecurityForm (obj )
62
62
ctype = ContentType .objects .get_for_model (obj )
63
63
queryset = XtdComment .objects .filter (content_type = ctype ,
64
- object_pk = obj .pk ,
64
+ object_pk = obj ._get_pk_val () ,
65
65
site__pk = get_current_site_id (request ),
66
66
is_public = True )
67
67
ctype_slug = "%s-%s" % (ctype .app_label , ctype .model )
@@ -86,10 +86,10 @@ def _reverse(*args, **kwargs):
86
86
"flag_url" : _reverse ("comments-flag" , args = (0 ,)),
87
87
"list_url" : _reverse ('comments-xtd-api-list' ,
88
88
kwargs = {'content_type' : ctype_slug ,
89
- 'object_pk' : obj .id }),
89
+ 'object_pk' : obj ._get_pk_val () }),
90
90
"count_url" : _reverse ('comments-xtd-api-count' ,
91
91
kwargs = {'content_type' : ctype_slug ,
92
- 'object_pk' : obj .id }),
92
+ 'object_pk' : obj ._get_pk_val () }),
93
93
"send_url" : _reverse ("comments-xtd-api-create" ),
94
94
"preview_url" : _reverse ("comments-xtd-api-preview" ),
95
95
"form" : {
You can’t perform that action at this time.
0 commit comments