'Return a 5-tuple of the form (as_manager (True), manager_class,
queryset_class, args, kwargs).
Raise a ValueError if the manager is dynamically generated.'

def deconstruct(self):

    qs_class = self._queryset_class
    if getattr(self, '_built_with_as_manager', False):
        return (True, None, ('%s.%s' % (qs_class.__module__, qs_class.__name__)), None, None)
    else:
        module_name = self.__module__
        name = self.__class__.__name__
        module = import_module(module_name)
        if (not hasattr(module, name)):
            raise ValueError(("Could    not    find    manager    %s    in    %s.\nPlease    note    that    you    need    to    inherit    from    managers    you    dynamically    generated    with    'from_queryset()'." % (name, module_name)))
        return (False, ('%s.%s' % (module_name, name)), None, self._constructor_args[0], self._constructor_args[1])
