I am adding user education to its userprofile. A user may have several entries for his training. Should I use basic M2M relationships such as -
class Education(models.Model): school = models.CharField(max_length=100) class_year = models.IntegerField(max_length=4, blank=True, null=True) degree = models.CharField(max_length=100, blank=True, null=True) class UserProfile(models.Model): user = models.ForeignKey(User, unique=True) educations = models.ManyToManyField(Education)
Or should I use an end-to-end model for this relationship? Thanks.
source share