https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L2320
--
Ticket URL: <https://code.djangoproject.com/ticket/29869>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* component: Uncategorized => Database layer (models, ORM)
* type: Uncategorized => Cleanup/optimization
Comment:
How would the conversion work?
--
Ticket URL: <https://code.djangoproject.com/ticket/29869#comment:1>
Comment (by thenewguy):
uuid.UUID(int=value) worked for me but I haven't tested any cases yet
--
Ticket URL: <https://code.djangoproject.com/ticket/29869#comment:2>
* stage: Unreviewed => Accepted
Comment:
Accepting on the basis that I could see it being useful when migrating a
project from sequence based to uuid primary keys.
--
Ticket URL: <https://code.djangoproject.com/ticket/29869#comment:3>
* status: new => assigned
* owner: nobody => Sanyam Khurana
--
Ticket URL: <https://code.djangoproject.com/ticket/29869#comment:4>
* has_patch: 0 => 1
Comment:
I've added a patch for this here:
https://github.com/django/django/pull/10557
--
Ticket URL: <https://code.djangoproject.com/ticket/29869#comment:5>
* stage: Accepted => Ready for checkin
Comment:
Marking as RFC given I'm not sure this is worth a mention in the release
notes.
--
Ticket URL: <https://code.djangoproject.com/ticket/29869#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"83c7096f2a84450957615ef52ffed0bee5f72606" 83c7096f]:
{{{
#!CommitTicketReference repository=""
revision="83c7096f2a84450957615ef52ffed0bee5f72606"
Fixed #29869 -- Made UUIDField.to_python() convert integers.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29869#comment:7>