Loading django/core/serializers/base.py +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class DeserializationError(Exception): def WithData(cls, original_exc, model, fk, field_value): """ Factory method for creating a deserialization error which has a more explanatory messsage. explanatory message. """ return cls("%s: (%s:pk=%s) field_value was '%s'" % (original_exc, model, fk, field_value)) Loading tests/model_forms/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -2291,7 +2291,7 @@ class ModelOtherFieldTests(SimpleTestCase): def test_modelform_non_editable_field(self): """ When explicitely including a non-editable field in a ModelForm, the When explicitly including a non-editable field in a ModelForm, the error message should be explicit. """ # 'created', non-editable, is excluded by default Loading Loading
django/core/serializers/base.py +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class DeserializationError(Exception): def WithData(cls, original_exc, model, fk, field_value): """ Factory method for creating a deserialization error which has a more explanatory messsage. explanatory message. """ return cls("%s: (%s:pk=%s) field_value was '%s'" % (original_exc, model, fk, field_value)) Loading
tests/model_forms/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -2291,7 +2291,7 @@ class ModelOtherFieldTests(SimpleTestCase): def test_modelform_non_editable_field(self): """ When explicitely including a non-editable field in a ModelForm, the When explicitly including a non-editable field in a ModelForm, the error message should be explicit. """ # 'created', non-editable, is excluded by default Loading