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

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -