on-internet
← Community

Best Practice for blog app with both News and Articles

Stack Overflow ·

Recently I started working on a news app which has both news and articles. I'm looking for best approach for my app's model. I can create Post model then News and Article model inherit from it by using Abstract inherit, or I can have News and Article model with duplicated fields ( bad idea ) or maybe I can use django polymorphism Maybe I'm wrong and I should specify only a field in my post model to declare that post is news or article.

Comments

Sign in or sign up to comment and upvote.

No comments yet.