Django model object with foreign key creation January 29, 2023 by Tarik What you’re after is: TestModel.objects.create(testkey_id=1)