--
Ticket URL: <https://code.djangoproject.com/ticket/33464>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* type: Uncategorized => Cleanup/optimization
* resolution: => duplicate
Comment:
Duplicate of #33397.
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:1>
* status: closed => new
* resolution: duplicate =>
Comment:
I'm pretty sure the changes committed as part of #33397, while closely
related, doesn't actually address this case. I think it's best to handle
this as a separate ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:2>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:3>
* cc: David Wobrock (added)
Comment:
Hasn't this been addressed by
https://github.com/django/django/pull/15271/files#diff-
359ab56295cce36b9597e1d65185f695f271955617b40f43df58ce3fe76fd0c8R492?
Removing the marked line will make
`expressions.tests.ExpressionOperatorTests.test_lefthand_modulo_null` fail
with a `Cannot infer type of '%%' expression involving these types:
IntegerField, IntegerField. You must set output_field.`
Which sounds pretty close to what is described in the issue here.
Or what am I missing? :)
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:4>
Comment (by Mariusz Felisiak):
Replying to [comment:4 David Wobrock]:
> Hasn't this been addressed by
https://github.com/django/django/pull/15271/files#diff-
359ab56295cce36b9597e1d65185f695f271955617b40f43df58ce3fe76fd0c8R492?
No, this issue is for mixed numeric types, e.g. `DecimalField` and
`IntegerField`.
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:5>
* owner: nobody => David Wobrock
* status: new => assigned
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16082 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:6>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:7>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:8>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"cff1f888e997522666835f96833840f52a13d322" cff1f88]:
{{{
#!CommitTicketReference repository=""
revision="cff1f888e997522666835f96833840f52a13d322"
Fixed #33464 -- Resolved output_field for combined numeric expressions
with MOD operator.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33464#comment:9>