Changes between Initial Version and Version 1 of Ticket #30548, comment 1
- Timestamp:
- Jun 6, 2019, 8:39:00 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30548, comment 1
initial v1 1 1 Agreed, we can add types to this exception but I would like to keep it simple, e.g. "''Expression contains mixed types: FloatField, IntegerField. You must set output_field to IntegerField.''" 2 3 {{{ 4 raise FieldError( 5 'Expression contains mixed types: %s, %s. You must set output_field to %s.' 6 % (output_field.__class__.__name__, source.__class__.__name__, source.__class__.__name__) 7 ) 8 }}}