django-fluent/django-fluent-comments

Custom model

marcelkornblum opened this issue · 2 comments

Is it possible to extend the FluentComment model, or the underlying Comment model at all? I have a system where I would like comments to be votable and I would like to use a mixin on the Comment model - but keep everything else about this app. Is this possible without a fork/custom install?

Yes, definitely! You can extend it, or just extend the Comment model. If you look at the code, you'll see that the FluentComment model is just a proxy that installs a different manager - only to make sure the admin works more efficiently.

@vdboor Hi! can you give me an example of how can i extend the Comment model? I need to add a ImageField. Thanks!