On Sunday, March 2, 2014 5:30:01 AM UTC-4:30, Robin Lery wrote: > > I have an app for forum. It has three classes *Tag*, *Question* and > *Answer*. > > I also want to have comments for *Question*, *Answers* and also for *other > parts* of my apps. What is the best way to achieve this? I mean, what is > the right way to design the django models for this use case? Do I have to > use *content types* for this? >
You can use multiple table inheritance. See this question and study how a similar case like yours was solved in another domain, but with the same need for comments: https://groups.google.com/forum/#!topic/django-users/KOebQtRnYt0 Regards, Camilo -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fdddbd07-f9eb-4eea-8e66-16118e111954%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.