Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using different model #57

Closed
vinaychandra opened this issue Oct 6, 2014 · 2 comments
Closed

Using different model #57

vinaychandra opened this issue Oct 6, 2014 · 2 comments

Comments

@vinaychandra
Copy link

How can we use a custom model for comments?

For example, the current comments have only a body. What to do if I want include more details to the comments so that some parts of it can also be rendered in the form?

@honzakral
Copy link
Owner

Unfortunately that is not currently possible

@vdboor
Copy link
Collaborator

vdboor commented Apr 15, 2015

You can pull that off by making an custom comments app, and use that as COMMENTS_APP = "myapp" in your settings. Your comments app would have to provide a get_form() and get_model() function that returns your form and model classes. You can let those inherit from the ThreadedComments and ThreadedCommentsForm class off course!

@vdboor vdboor closed this as completed Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants