class MaleManager(models.Manager):
   def get_query_set(self):
      return super('here should be EmployeeManager', self).get_query_set().filter(sex='male')
# Need to pass class name Employee开发者_Python百科Manager to MaleManager
class EmployeeManager(MaleManager):
    def get_query_set(self):
        return super(EmployeeManager, self).get_query_set()
So what I want to do here is passing EmployeeManager to GenericManager, and now have no Idea how to do that?
If for, whatever reason, what you've described actually does make sense, you might be looking for the self.__class__ property.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论