If I read the docs correctly, then the FileField in Django does not know the content_type of the file: https://docs.djangoproject.com/en/2.1/ref/models/fields/
I would like to store files in a Django application, but I want to query the content_type.
Examples:
- list all objects which have a file with content_type "application/pdf"
- list all objects which have a file with content_type "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
What is the most django-like way to handle this?