I have two models related by a foreign key:
# models.py class TestSource(models.Model): name = models.CharField(max_length=100) class TestModel(mod
TestForm.attribution expects int value - key to TestSource model.
Maybe this version of the model will be more convenient for you:
class TestSource(models.Model): name = models.CharField(max_length=100, primary_key=True)