Hello,
I am new to Django and I have the following relation in the model
class Name_Mapping(models.Model):
AccessionID = models.ForeignKey(('Feature', 'Protein', 'Substrate'), primary_key = True)
Element_Name = models.CharField(max_length = 40)
This raises an error:
AssertionError: ForeignKey(('Feature', 'Protein', 'Substrate')) is invalid. First parameter to ForeignKey must be either a model, a model name, or the string 'self'
Can you help me with the syntax please?