Module ImportFrom alias Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str If CompareIn NameLoad ListLoad Str body If UnaryOpNot Call NameLoad NameLoad Str body Return Assign NameStore Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str If NameLoad body ImportFrom alias ImportFrom alias For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str ImportFrom alias For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list
N/A filecmp cmp N/A os django.conf settings set_encode_profiles N/A N/A sender instance N/A kwargs N/A N/A Store the currently configured encoding profiles.

    This allows changes to the profiles to be detected so it can be
    determined if the file needs to be encoded. If a new file is being
    uploaded, force the re-encode.

    Signal: pre_save
    Sender: Media
     N/A N/A instance pk N/A N/A N/A instance _profiles N/A set N/A list N/A N/A N/A instance profiles values_list pk flat True N/A N/A N/A instance _profiles N/A set N/A list N/A N/A hasattr N/A N/A instance file file temporary_file_path N/A N/A N/A N/A current N/A N/A N/A sender objects get pk N/A instance pk N/A N/A N/A N/A sender DoesNotExist N/A N/A N/A N/A current_file N/A N/A N/A os path join N/A settings MEDIA_ROOT N/A N/A current file name N/A new_file N/A N/A N/A os path join N/A settings MEDIA_ROOT N/A N/A N/A N/A instance file file temporary_file_path N/A N/A N/A cmp current_file new_file N/A N/A N/A instance _reencode True N/A N/A N/A N/A current file delete save False N/A encode_profiles_changed N/A N/A sender instance action N/A kwargs N/A N/A Handle changes in associated encoding profiles.

    If profiles are added, create an encoding task for each of the new
    profiles. If a re-encode is forced, create encoding tasks for all
    associated profiles.

    If profiles are removed, create a deletion task to remove the
    remotely stored media.

    Signal: m2m_changed
    Sender: MediaBase.profiles.through
     N/A N/A action N/A post_add N/A N/A N/A N/A hasattr instance _profiles N/A N/A N/A added_profiles N/A list N/A N/A N/A kwargs N/A pk_set difference N/A instance _profiles N/A added_profiles N/A N/A N/A N/A instance encode profiles added_profiles N/A N/A N/A hasattr instance _reencode N/A N/A N/A N/A instance encode N/A removed_profiles N/A list N/A N/A N/A instance _profiles difference N/A kwargs N/A pk_set N/A removed_profiles N/A models RemoteStorage tasks delete_media N/A profile_id removed_profiles N/A N/A N/A N/A storage N/A N/A N/A RemoteStorage objects get media instance profile_id profile_id N/A N/A N/A N/A RemoteStorage DoesNotExist N/A N/A N/A N/A N/A N/A delete_media delay N/A storage id N/A delete_remote_storage N/A N/A sender instance N/A kwargs N/A N/A Delete media files from remote storage.

    Iterate through all associated remotely stored media and
    trigger a delete. This is handled through a signal so it
    is fired even when performing bulk deletes.

    Signal: pre_delete
    Sender: Media
     tasks delete_media N/A storage N/A N/A N/A instance remotestorage_set all N/A N/A N/A N/A delete_media delay N/A storage id N/A