#14518: Field.to_python not called on foreign key IDs
-------------------------------------+-------------------------------------
     Reporter:  wolever              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |  worksforme
     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 timgraham):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 I can't reproduce the behavior described in the ticket as far back as
 Django 1.2. `b.foo_id` and `b.foo.id` both return an integer. A look of
 the follow up comments use `SubfieldBase` which is deprecated in favor of
 `Field.from_db_value()`. If problems remain in newer versions of Django,
 please open a new ticket with details.

--
Ticket URL: <https://code.djangoproject.com/ticket/14518#comment:16>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.3396ae92d3c89a40a3d526beefc1cc53%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to