Thanks rob and Adrian, I don't use custom admin templates (I hope to someday but I need to study the documentation, if it is available, is it?). My code is a bit more elaborate than the example I sent but the structure is the same and I'm _really_ sorry but I didn't test the example before sending, assuming it worked like my code. As soon as possible (tomorrow) I'll try to go much deeper in the details of the problem and send appropriate feedback. It's good to know that recent updates didn't change the behaviour of raw_id_admin. Thanks again Adrian. And rob, you're right: I tested many things but I didn't notice this little detail (not so little for my users). In any case I didn't expect a different behaviour of the code just upgrading django (and following carefully BackwardIncompatibleChanges notes) so forgive me, this time.
Stay tuned, Emanuele