danirus / django-comments-xtd

A pluggable Django comments application with thread support, follow-up notifications, mail confirmation, like/dislike flags, moderation, a ReactJS plugin and Bootstrap 5.3.
https://django-comments-xtd.readthedocs.io
BSD 2-Clause "Simplified" License
594 stars 157 forks source link

How to create a comment using rest api in django-comments-xtd #155

Closed KedarisettiSreeVamsi closed 4 years ago

KedarisettiSreeVamsi commented 4 years ago

I have tried using /comments/api/comments/ and we are having problem with security_hash,honeypot can anyone help on how to post a comment

KedarisettiSreeVamsi commented 4 years ago

I used postman to send a comment to my app but it is giving me security_hash and honeypot and timezone as required_fields I have overrides timezone with django.utils.timezone but from other fields I am having this problem

KedarisettiSreeVamsi commented 4 years ago

Also for the api views we are getting CommentCreate doesn't have queryset

KedarisettiSreeVamsi commented 4 years ago

Added XtdComment.objects.all() for queryset in CommentCreate gave the API view but cannot resolve security_hash and honeypot

danirus commented 4 years ago

So far it's not possible. It will be ready in the next release.

danirus commented 4 years ago

Pull request #181 implements the fix for this issue. The fix will be wrapped in v2.7.0 in a few days. The web API docs have been extended to cover the case. Thanks @KedarisettiSreeVamsi for sending it.