I have two models Profile and Post; I want to allow the user to add 
comments on any of them without repeating the code. 
In other words, the Profile and the Post components contain a comment 
field, and the user who views the Profile wants to add comments, or who 
views Posts intends to add a comment.
I have created another component (class) for the comments and assigned the 
comments as a foreign key inside Profile and Post.

Do I have another solution?

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/20f8929b-59a5-4379-beb1-def34419682bn%40googlegroups.com.
  • Usi... Tawfeeq Zaghlool
    • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
      • ... Tawfeeq Zaghlool

Reply via email to