def get_resource_types(self):
resource_types = set()<EOL>for model in self.models():<EOL><INDENT>for field in self.model_file_fields(model):<EOL><INDENT>resource_type = field.storage.RESOURCE_TYPE<EOL>resource_types.add(resource_type)<EOL><DEDENT><DEDENT>return resource_types<EOL>
Returns set of resource types of FileFields of all registered models.
Needed by Cloudinary as resource type is needed to browse or delete specific files.