django - ForeignKey to multiple Models or Queryset -


it possible make foreignkey more on model. want choose lets say, parts , machines model.

i read combine multiple models 1 list: how combine 2 or more querysets in django view?

but can foreignkey list somehow?

i know asked on year ago, had similar problem , want share link solution future readers.

generally the contenttypes framework solves problem, , guess daniel roseman talking about.

how use dynamic foreignkey in django?


Comments

Popular posts from this blog

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -

c# - BasicHttpBinding equivalent CustomBinding using WCF Client and PHP WebService -