          return '*', []
  
  
  class Random(Expression):
      def __init__(self):
          super().__init__(output_field=fields.FloatField())
  
      def __repr__(self):
          return "Random()"
  
      def as_sql(self, compiler, connection):
 
</s> remove         super().__init__(lhs, self.SUB, rhs, output_field=fields.DurationField())
 </s> add         super().__init__(lhs, self.SUB, rhs) </s> remove 
    def __init__(self, y, x, filter=None):
        super().__init__(y=y, x=x, output_field=IntegerField(), filter=filter)
 </s> add     output_field = IntegerField() </s> remove 
    def __init__(self, expression, *, output_field=None, **extra):
        super().__init__(expression, output_field=output_field or fields.IntegerField(), **extra)
 </s> add     output_field = fields.IntegerField() </s> remove 
    def __init__(self, *args, output_field=None, **kwargs):
        super().__init__(*args, output_field=DateField(), **kwargs)
 </s> add     output_field = DateField()
    output_field = fields.FloatField()
          return '*', []
  
  
  class Random(Expression):
    output_field = fields.FloatField()
    output_field = fields.FloatField()
  
      def __repr__(self):
          return "Random()"
  
      def as_sql(self, compiler, connection):
keep keep keep keep replace 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/db/models/expressions.py