          return super().as_sql(compiler, connection, function=function)
  
  
  class LineLocatePoint(GeoFunc):
      output_field_class = FloatField
      arity = 2
      geom_param_pos = (0, 1)
  
  
  class MakeValid(GeoFunc):
 
</s> remove     output_field_class = FloatField
 </s> add     output_field = FloatField() </s> remove     output_field_class = TextField
 </s> add     output_field = TextField() </s> remove     output_field_class = IntegerField
 </s> add     output_field = IntegerField() </s> remove     output_field_class = IntegerField
 </s> add     output_field = IntegerField() </s> remove 
    def __init__(self, string, substring, **extra):
        """
        string: the name of a field, or an expression returning a string
        substring: the name of a field, or an expression returning a string
        """
        super().__init__(string, substring, output_field=fields.IntegerField(), **extra)
 </s> add     output_field = fields.IntegerField()
    output_field = FloatField()
          return super().as_sql(compiler, connection, function=function)
  
  
  class LineLocatePoint(GeoFunc):
    output_field = FloatField()
      arity = 2
      geom_param_pos = (0, 1)
  
  
  class MakeValid(GeoFunc):
keep keep keep keep replace keep keep keep keep keep
 Fixed #28492 -- Defined default output_field of expressions at the class level.

This wasn't possible when settings were accessed during Field initialization
time as our test suite setup script was triggering imports of expressions
before settings were configured. 
django/contrib/gis/db/models/functions.py