0

I'm making some big changes in Django Admin and need to make an application to group various models to groups and then show it in menu. I have a function to generate list of all available admin models including permissions. So I make 1 model to add group (id, name). Via Inlines I want to add specific models to groups. What is the best way to store models references? Should I store it as string and during my menu is generated I should parse the name, find specific model and generate its url in admin?

Thanks for clues.

tunarob
  • 2,768
  • 4
  • 31
  • 48

1 Answers1

1

Sounds like contenttypes would help you.

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895