Description

I have set DATETIME_FORMAT in the settings. I have 2 models with OneToMany relation (one has datetime and another uses fk to get datetime). In admin I get correct datetime for model, which uses function returning fk.some_datetime. Format in model containing datetime is wrong.
After checking I noticed it comes from utils.translation.get_date_formats:

Regarding your original report, it would be very useful if you post: a) A minimal example of the model(s) you describe and b) if you can, the value of the if datetime_format variable at the if datetime_format == 'DATETIME_FORMAT': line because if you are using en-us at that point its valus should be 'DATETIME_FORMAT'.