Note: Is not a file type problem, because the another files code is recognized and the file icon is of python.
You are wrong -- it is File Types problem.
- Preferences | File Types
- Text Files in upper list
- Find and remove unwanted pattern in lower list -- I expect this to be
models.py
or quite similar
A bit more / simialr SO questions: