KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I Get A Foreign Key Model Type? For Example: class Category(models.Model): name = models.CharField(max_length = 100) class SubCategory(models.Model): category = models.ForeignKey(Category) title = models.CharField(max_length = 100) I Want To Get category Model In SubCategory. How Can I Do It?
Tags (comma-separated)
Save Edits
Cancel