def annotate(self, *args, **kwargs): args, kwargs = translate(args, kwargs) return super(QuerySet, self).annotate(*args, **kwargs)
def _filter_or_exclude(self, negate, *args, **kwargs): args, kwargs = translate(args, kwargs) return super(QuerySet, self)._filter_or_exclude(negate, *args, **kwargs)
def filter(self, *args, **kwargs): args, kwargs = translate(args, kwargs) return super(QuerySet, self).filter(*args, **kwargs)
def exclude(self, *args, **kwargs): args, kwargs = translate(args, kwargs) return super(WorkersManager, self).exclude(*args, **kwargs)
def order_by(self, *field_names): field_names, _ = translate(field_names, dict()) return super(QuerySet, self).order_by(*field_names)
def annotate(self, *args, **kwargs): args, kwargs = translate(args, kwargs) return super(WorkersManager, self).annotate(*args, **kwargs)
def order_by(self, *args, **kwargs): args, kwargs = translate(args, kwargs) return super(WorkersManager, self).order_by(*args, **kwargs)
def get(self, *args, **kwargs): args, kwargs = translate(args, kwargs) a = super(WorkersManager, self).get(*args, **kwargs) if self.inst_type: assert isinstance(a, self.inst_type) return a
def filter(self, *args, **kwargs): args, kwargs = translate(args, kwargs) # return super(WorkersManager, self).filter(*args, **kwargs) return self.get_query_set().filter(*args, **kwargs)
def get(self, *args, **kwargs): args, kwargs = translate(args, kwargs) return super(QuerySet, self).get(*args, **kwargs)
def exclude(self, *args, **kwargs): args, kwargs = translate(args, kwargs) return super(QuerySet, self).exclude(*args, **kwargs)
def __init__(self, *args, **kwargs): args, kwargs = translate(args, kwargs) super(Q, self).__init__(*args, **kwargs)