File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def _reverse(*args, **kwargs):
59
59
return reverse (* args , ** kwargs )
60
60
61
61
form = CommentSecurityForm (obj )
62
- ctype = ContentType .objects .get_for_model (obj )
62
+ ctype = ContentType .objects .get_for_model (obj , for_concrete_model = False )
63
63
queryset = XtdComment .objects .filter (content_type = ctype ,
64
64
object_pk = obj ._get_pk_val (),
65
65
site__pk = get_current_site_id (request ),
Original file line number Diff line number Diff line change @@ -64,5 +64,5 @@ def get_comment_create_data(self, site_id=None):
64
64
data .update ({'thread_id' : 0 , 'level' : 0 , 'order' : 1 ,
65
65
'parent_id' : self .cleaned_data ['reply_to' ],
66
66
'followup' : self .cleaned_data ['followup' ],
67
- 'content_object' : target })
67
+ })
68
68
return data
Original file line number Diff line number Diff line change @@ -220,6 +220,9 @@ def get_comment_dict(obj):
220
220
return dic_list
221
221
222
222
223
+ XtdComment .content_object .for_concrete_model = False
224
+
225
+
223
226
def publish_or_unpublish_nested_comments (comment , are_public = False ):
224
227
qs = get_model ().norel_objects .filter (~ Q (pk = comment .id ),
225
228
parent_id = comment .id )
You can’t perform that action at this time.
0 commit comments