I’m having issues with displaying GenericForeignKey fields in the Django Admin Panel. Additionally, I’m wondering if there’s a way to vary the options for the object ID field based on the content type, while ensuring that the selected ID is saved correctly. Can anyone offer guidance or suggestions on how to accomplish this? Thanks in advance for your help.
Not for the Django-provided GFK, no. You could implement your own if you really wanted to. (Personally, I consider GFKs bad-enough as it is - I don’t think they need to be made any worse.)
I’d suggest taking a long, hard look at the data model to re-evaluate the decisions that led you this point. Yes, there might be a reason why this might be considered a good idea, but my inclination would be that this is an indication of something more fundamentally wrong with your data model.