Changes between Initial Version and Version 1 of Ticket #30548, comment 1


Ignore:
Timestamp:
Jun 6, 2019, 8:39:00 AM (6 years ago)
Author:
Mariusz Felisiak

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30548, comment 1

    initial v1  
    11Agreed, 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{{{
     4raise 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}}}
Back to Top