Wednesday, January 27, 2021

Show FK as input instead of drop down in admin


Is it possible to disable fetching of related models for admin pages?
I have a field that links to a table containing more than 1M rows which django tries to fetch and build the drop down. For my purpose, it is sufficient if it is a simple input containing the id instead.

How can I accomplish this?

Thank you!

Kind regards

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment