cdh.files.db.manager module

class cdh.files.db.manager.FileManager(*args, **kwargs)[source]

Bases: Manager

get_queryset_from_field(field)[source]

Given a field, it will return a QS returning all files for the given field

get_queryset_from_model(model)[source]

Given a model, it will return a QS returning all files for the given model

cdh.files.db.manager.create_tracked_file_manager(superclass, rel)[source]

Create a manager for the TrackedFileField’s TrackedFileWrapper

This manager subclasses another manager, generally the default manager of the related model, and adds behaviors specific to many-to-many relations.