[Answered ]-Model person to be able to have 1 or more first names out of which one is primary

2👍

You can create another model to store the person names, something like:

class PersonName(models.Model):
    name = models.CharField(max_length=255)
    primary = models.BooleanField(default=True)
    person = models.ForeignKey('Person')

    def __str__(self):
        return self.name

You can access the names from any person object using person.personname_set

Leave a comment