Module ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias If CompareGtE NameLoad TupleLoad Num Num body ImportFrom alias orelse ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases Call NameLoad NameLoad NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad NameLoad Str orelse Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str NameLoad FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body If CompareGt Call AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad Str attr attr Str Index Num orelse Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad Str attr Return AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore Call Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str If SubscriptLoad NameLoad Index Str body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If BoolOpAnd CompareNotEq AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str If SubscriptLoad NameLoad Index Str body Return Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad ListComp TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A __future__ unicode_literals django.utils.six with_metaclass moderation.models ModeratedObject MODERATION_STATUS_PENDING MODERATION_STATUS_APPROVED MODERATION_DRAFT_STATE django.core.exceptions ObjectDoesNotExist django VERSION N/A N/A VERSION N/A 1 8 N/A django.contrib.contenttypes.fields GenericRelation N/A django.contrib.contenttypes.generic GenericRelation moderation.moderator GenericModerator RegistrationError N/A Exception N/A N/A Exception thrown when registration with Moderation goes wrong. N/A ModerationManagerSingleton N/A type N/A __init__ N/A N/A cls name bases dict N/A N/A N/A N/A N/A N/A super ModerationManagerSingleton cls __init__ name bases dict N/A N/A cls instance None N/A __call__ N/A N/A cls N/A args kw N/A N/A N/A N/A cls instance None N/A N/A N/A cls instance N/A N/A N/A super ModerationManagerSingleton cls __call__ args kw N/A N/A cls instance N/A N/A ModerationManager N/A N/A with_metaclass ModerationManagerSingleton object N/A __init__ N/A N/A self N/A args kwargs N/A N/A Initializes the moderation manager. N/A N/A self _registered_models N/A N/A N/A N/A N/A super ModerationManager self __init__ args kwargs N/A register N/A N/A self model_class moderator_class N/A None N/A N/A Registers model class with moderation N/A N/A model_class N/A self _registered_models N/A N/A msg N/A %s has been registered with Moderation. model_class N/A N/A RegistrationError msg N/A N/A moderator_class N/A N/A moderator_class GenericModerator N/A N/A N/A issubclass moderator_class GenericModerator N/A N/A msg N/A moderator_class must subclass GenericModerator class, found %s moderator_class N/A N/A AttributeError msg N/A N/A N/A self _registered_models N/A model_class N/A moderator_class model_class N/A N/A N/A self _and_fields_to_model_class N/A N/A self _registered_models N/A model_class N/A N/A N/A self _connect_signals model_class N/A _connect_signals N/A N/A self model_class N/A N/A django.db.models signals N/A N/A N/A N/A signals pre_save connect N/A self pre_save_handler sender model_class N/A N/A N/A N/A signals post_save connect N/A self post_save_handler sender model_class N/A _add_moderated_object_to_class N/A N/A self model_class N/A N/A N/A N/A hasattr model_class _relation_object N/A N/A relation_object N/A getattr model_class _relation_object N/A N/A relation_object N/A GenericRelation ModeratedObject object_id_field object_pk N/A N/A N/A model_class add_to_class _relation_object relation_object get_moderated_object N/A N/A self N/A N/A N/A N/A N/A hasattr self _moderated_object N/A N/A N/A N/A N/A N/A self _relation_object count 0 N/A N/A N/A self _moderated_object N/A N/A N/A N/A N/A N/A getattr self _relation_object filter order_by -date_updated N/A 0 N/A N/A N/A self _moderated_object N/A N/A N/A getattr self _relation_object get N/A N/A self _moderated_object N/A N/A N/A N/A model_class add_to_class moderated_object N/A property get_moderated_object N/A _and_fields_to_model_class N/A N/A self moderator_class_instance N/A N/A N/A Sets moderation manager on model class,
           adds generic relation to ModeratedObject,
           sets _default_manager on model class as instance of
           ModerationObjectsManager
         N/A model_class N/A moderator_class_instance model_class N/A base_managers N/A moderator_class_instance base_managers N/A moderation_manager_class N/A moderator_class_instance moderation_manager_class N/A N/A manager_name mgr_class base_managers N/A N/A ModerationObjectsManager N/A N/A moderation_manager_class mgr_class N/A manager N/A ModerationObjectsManager N/A N/A N/A model_class add_to_class N/A unmoderated_%s manager_name N/A mgr_class N/A N/A N/A model_class add_to_class manager_name manager N/A N/A N/A self _add_moderated_object_to_class model_class N/A unregister N/A N/A self model_class N/A N/A N/A Unregister model class from moderation N/A N/A N/A moderator_instance N/A N/A N/A self _registered_models pop model_class N/A N/A N/A KeyError N/A N/A msg N/A %r has not been registered with Moderation. model_class N/A N/A RegistrationError msg N/A N/A N/A self _remove_fields moderator_instance N/A N/A N/A self _disconnect_signals model_class N/A _remove_fields N/A N/A self moderator_class_instance N/A N/A N/A Removes fields from model class and disconnects signals N/A model_class N/A moderator_class_instance model_class N/A base_managers N/A moderator_class_instance base_managers N/A N/A manager_name manager_class base_managers N/A N/A manager N/A manager_class N/A N/A delattr model_class N/A unmoderated_%s manager_name N/A N/A N/A model_class add_to_class manager_name manager N/A N/A delattr model_class moderated_object N/A _disconnect_signals N/A N/A self model_class N/A N/A django.db.models signals N/A N/A N/A N/A signals pre_save disconnect N/A self pre_save_handler model_class N/A N/A N/A N/A signals post_save disconnect N/A self post_save_handler model_class N/A pre_save_handler N/A N/A self sender instance N/A kwargs N/A N/A 
        Create a new moderation for the instance if it doesn't have any.
        If it does have a previous moderation, get that one
         N/A N/A kwargs N/A raw N/A N/A N/A unchanged_obj N/A N/A self _get_unchanged_object instance N/A moderator N/A N/A self get_moderator sender N/A unchanged_obj N/A N/A moderated_obj N/A N/A self _get_or_create_moderated_object instance unchanged_obj moderator N/A N/A N/A N/A moderated_obj moderation_status MODERATION_STATUS_APPROVED N/A N/A moderator bypass_moderation_after_approval N/A N/A N/A N/A moderated_obj save N/A _get_unchanged_object N/A N/A self instance N/A N/A N/A N/A N/A instance pk None N/A N/A None N/A pk N/A instance pk N/A N/A N/A unchanged_obj N/A N/A N/A N/A instance __class__ _default_manager get pk pk N/A unchanged_obj N/A N/A N/A ObjectDoesNotExist N/A N/A None N/A _get_or_create_moderated_object N/A N/A self instance unchanged_obj moderator N/A N/A N/A 
        Get or create ModeratedObject instance.
        If moderated object is not equal instance then serialize unchanged
        in moderated object in order to use it later in post_save_handler
         get_new_instance N/A N/A unchanged_obj N/A N/A N/A moderated_object N/A ModeratedObject content_object unchanged_obj N/A N/A moderated_object changed_object unchanged_obj N/A moderated_object N/A N/A N/A N/A moderated_object N/A N/A N/A ModeratedObject objects get_for_instance instance N/A N/A moderated_object None N/A N/A moderated_object N/A get_new_instance unchanged_obj N/A N/A N/A N/A moderator keep_history N/A N/A moderated_object has_object_been_changed instance N/A N/A moderated_object N/A get_new_instance unchanged_obj N/A N/A N/A ObjectDoesNotExist N/A N/A moderated_object N/A get_new_instance unchanged_obj N/A N/A N/A N/A moderated_object has_object_been_changed instance N/A N/A N/A moderator visible_until_rejected N/A N/A N/A moderated_object changed_object instance N/A N/A N/A moderated_object changed_object unchanged_obj N/A moderated_object N/A get_moderator N/A N/A self model_class N/A N/A N/A N/A N/A moderator_instance N/A N/A self _registered_models N/A model_class N/A N/A N/A KeyError N/A N/A msg N/A %r has not been registered with Moderation. model_class N/A N/A RegistrationError msg N/A moderator_instance N/A post_save_handler N/A N/A self sender instance N/A kwargs N/A N/A 
        Creates new moderation object if instance is created,
        If instance exists and is only updated then save instance as
        content_object of moderated_object
         N/A N/A kwargs N/A raw N/A N/A N/A pk N/A instance pk N/A moderator N/A N/A self get_moderator sender N/A N/A kwargs N/A created N/A N/A old_object N/A N/A N/A sender _default_manager get pk pk N/A moderated_obj N/A ModeratedObject content_object old_object N/A N/A N/A moderator visible_until_rejected N/A N/A N/A moderated_obj moderation_state MODERATION_DRAFT_STATE N/A N/A N/A moderated_obj save N/A N/A N/A moderator inform_moderator instance N/A N/A moderated_obj N/A N/A N/A ModeratedObject objects get_for_instance instance N/A N/A N/A N/A moderated_obj moderation_status MODERATION_STATUS_APPROVED N/A moderator bypass_moderation_after_approval N/A N/A N/A moderated_obj changed_object instance N/A N/A N/A moderated_obj save N/A N/A N/A N/A moderated_obj has_object_been_changed instance N/A N/A copied_instance N/A N/A self _copy_model_instance instance N/A N/A N/A moderator visible_until_rejected N/A N/A N/A N/A N/A moderated_obj changed_object save_base raw True N/A N/A moderated_obj changed_object copied_instance N/A N/A moderated_obj moderation_status MODERATION_STATUS_PENDING N/A N/A N/A moderated_obj save N/A N/A N/A moderator inform_moderator instance N/A N/A instance _moderated_object moderated_obj N/A _copy_model_instance N/A N/A self obj N/A N/A N/A initial N/A dict N/A N/A N/A f name N/A getattr obj N/A f name N/A f N/A N/A obj _meta fields N/A N/A N/A obj __class__ initial N/A N/A