Hello dear Django experts! I ask for help in this matter: There is a code:

I seem to begin to understand …
How then can I apply readonly_fields along with this condition?

Ken, hello!
On your advice, I did this:

if Articles and Articles.delivery_type == 'Самовывоз':
    user_blocked_fields = [f for f in user_blocked_fields if f not in self.manager_and_transport_group_fields]

…but nothing happens and there is no reaction to this code.
Can you please tell me what am I doing wrong again?
Thank you in advance!