This may looks confusing, so I am going to explain further. When we use CommentsField as model field then one extra field is added to model called as comments_count which holds number of comments for an object related to model. When a comment is added then it's value get increased by one. How to decrease value when a comment is deleted.
On Wednesday, November 4, 2015 at 6:19:29 PM UTC+5:30, sonu kumar wrote: > > When a comment is added to a model then it's comment count get incremented > automatically. How to do the same in reverse case like when we delete a > comments then comments count should be decreased by number of comments > related to given comment and model. Currently I am able to flag a comment > by setting is_removed set to True. But it's not affecting comments count. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
