It can be useful to have an auto-incrementing 16-bit integer field for
infrequently updated tables that contain a list of choices, e.g.
countries, for systems where limited disk space/memory is available.
(In part this was also a test for the changes in #29979.)
--
Ticket URL: <https://code.djangoproject.com/ticket/30661>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/10680 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/30661#comment:1>
Comment (by Carlton Gibson):
Wondering if this is sufficiently useful to be part of core? (It seems a
bit niche.) Seems like the sort of thing we often recommend putting in the
third-party field (and package).
--
Ticket URL: <https://code.djangoproject.com/ticket/30661#comment:2>
* stage: Unreviewed => Accepted
Comment:
I'm going to accept this based on Anssi's comments
([https://code.djangoproject.com/ticket/14286#comment:9 comment:9] and
[https://code.djangoproject.com/ticket/18201#comment:1 comment:1]). I
think it's worth to add this for consistency and "small" optimization.
--
Ticket URL: <https://code.djangoproject.com/ticket/30661#comment:3>
Comment (by Nick Pope):
Split into new [https://github.com/django/django/pull/11611 PR].
--
Ticket URL: <https://code.djangoproject.com/ticket/30661#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/30661#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"194d1dfc186cc8d2b35dabf64f3ed38b757cbd98" 194d1dfc]:
{{{
#!CommitTicketReference repository=""
revision="194d1dfc186cc8d2b35dabf64f3ed38b757cbd98"
Fixed #30661 -- Added models.SmallAutoField.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30661#comment:6>