code: def get_fields(self, model):
          
          return sorted(
              [f.name for f in model._meta.get_fields() if f.name != 'password']
          )
docs: By default, returns all field names of a given model.
  
          Override this method to limit field options. You can either return a
          plain list of field names from it, like ['id', 'name'], or call
          .super() and exclude unwanted fields from its result.