class Machine_Category(models.Model): category = models.CharField(max_length = 100) def __str__(self): return self.category class Machine(models.Model): machine_id = models.CharField(max_length = 100) category = models.ForeignKey(Machine_Category, on_delete = models.CASCADE)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)