Hello. I have 3 models:
class Person(models.Model):
name = models.CharField(max_length=50)
class Skill(models.Model):
skill_name = models.CharField(max_length=100)
person = models.ForeignKey(Person, on_delete=models.CASCADE, related_name="skills")
class WorkHistory(models.Model):
company_name = models.CharField(max_length=100)
person = models.ForeignKey(Person, on_delete=models.CASCADE, related_name="workhistories")
In the django’s admin panel I can manage all 3 models on one page:
In the django’s admin panel I can dynamically add or remove related models. Works lovely. But I need to create identical funcionality without using django’s admin panel. Do you know how to do it? I don’t want to reinvent the wheel. I searched the internet, but didn’t find nothing interesting. What are the best practices? Maybe you found any tutorial/solution on the internet?
Thank you