Is it possible to allow a user to add data into a table of foreignkeys as opposed to primarykeys in Django?

Say I have 3 tables (or Python classes):

Two tables contain primary keys and so are LOOKUP tables.

Another table (say table X) contains both foreign keys from the first 2 tables along with some more primary keys.

Is it possible to upload data directly into table X in Django? If so, would the primary keys automatically inherit these data values?

Back to Top