3👍
✅
Since you just want it to point to the models themselves, not individual records, all you need is
my_model = models.ForeignKey(ContentType)
Then, if you want to figure out which model a header is associated with, just do
>>> my_header.my_model
<ContentType: Model Name>
If you want to point to specific records, you need the other two fields. The object_id field holds the pk of the record you’re pointing too. And the content_object field is NOT stored in the database, but rather is just a nice wrapper that (using the object_id and content_type fields) returns the model object, rather than you having to look up the record manually based on the content type and the id.
Source:stackexchange.com