#33464: Resolve output_field when combining numeric expressions with MOD 
operator.
-------------------------------------+-------------------------------------
     Reporter:  gsinghkular          |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  3.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by David Wobrock):

 * 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070182d16614da-aab0e100-7cb6-475e-aeb5-1a369f225110-000000%40eu-central-1.amazonses.com.

Reply via email to