These are chat archives for django/django
class Segment(models.Model): industry = models.ForeignKey(Industry, related_name='segment', on_delete=models.CASCADE) name = models.CharField(max_length=150, blank=True, null=True)
@MilanRgm Ideally info related to segment should come in Segment model. Everything should be decoupled.
Let say you have same segment on multiple industry.
In your database
seg1, indsutry1 seg1, indsutry2 seg1, indsutry3
We have to normalize the database so that
seg1 is not repeated.
My approach will avoid data duplication.