Developers are faced with:
"TypeError: int() argument must be a string, a bytes-like object or a
number, not 'tuple'"
This change (PR included) displays the field name which makes spotting
errors a lot easier.
--
Ticket URL: <https://code.djangoproject.com/ticket/28393>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> When a large model is updated and saved with invalid values,
> Django produces a traceback deep within the ORM, with no clue
> which field assignment caused the error.
>
> Developers are faced with:
>
> "TypeError: int() argument must be a string, a bytes-like object or a
> number, not 'tuple'"
>
> This change (PR included) displays the field name which makes spotting
> errors a lot easier.
New description:
When a large model is updated and saved with invalid values,
Django produces a traceback deep within the ORM, with no clue
which field assignment caused the error.
Developers are faced with:
"TypeError: int() argument must be a string, a bytes-like object or a
number, not 'tuple'"
This change (PR included) displays the field name which makes spotting
errors a lot easier.
Pull request: https://github.com/django/django/pull/8760
--
--
Ticket URL: <https://code.djangoproject.com/ticket/28393#comment:1>
* needs_better_patch: 0 => 1
* type: Uncategorized => Cleanup/optimization
* easy: 1 => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/28393#comment:2>
* status: new => assigned
* needs_better_patch: 1 => 0
* version: 1.11 => master
* owner: nobody => Nick Pope
Old description:
> When a large model is updated and saved with invalid values,
> Django produces a traceback deep within the ORM, with no clue
> which field assignment caused the error.
>
> Developers are faced with:
>
> "TypeError: int() argument must be a string, a bytes-like object or a
> number, not 'tuple'"
>
> This change (PR included) displays the field name which makes spotting
> errors a lot easier.
>
> Pull request: https://github.com/django/django/pull/8760
New description:
When a large model is updated and saved with invalid values,
Django produces a traceback deep within the ORM, with no clue
which field assignment caused the error.
Developers are faced with:
"TypeError: int() argument must be a string, a bytes-like object or a
number, not 'tuple'"
This change displays the field name which makes spotting errors a lot
easier.
--
Comment:
New [https://github.com/django/django/pull/11622 PR].
--
Ticket URL: <https://code.djangoproject.com/ticket/28393#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"25f21bd2376603c8e233a0a0e5a726a0fdfdd33e" 25f21bd2]:
{{{
#!CommitTicketReference repository=""
revision="25f21bd2376603c8e233a0a0e5a726a0fdfdd33e"
Fixed #28393 -- Added helpful error messages for invalid
AutoField/FloatField/IntegerField values.
Co-authored-by: Diederik van der Boor <vdb...@edoburu.nl>
Co-authored-by: Nick Pope <nick...@flightdataservices.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28393#comment:4>