* owner: nobody => woodlee
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by woodlee):
Fixing in
https://github.com/mapmyfitness/django/commit/9d17d485bd661e77de587e70b231b846dc40d721
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:10>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:11>
Comment (by woodlee):
All contenttypes.ContentTypesTests pass under sqlite.
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:12>
Comment (by ramiro):
See also #13085.
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:13>
Comment (by ramiro):
I'd say close this ticket as ''wontfix'' because ContentType is an
'internal' model over which the user has no control so its IntegerField id
PK follows the usual semantics of a Django model regarding it having a
value of 0 meaning the model has no corresponding DB record.
So the only scenario in which CT could have a 0 PK is an edge-case one and
IMHO it's not worth to special-case PK semantics of CT for it.
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:14>
* stage: Accepted => Design decision needed
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:15>
Comment (by ramiro):
The one that changed triage state to DDN was me. Sorry
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:16>
* stage: Design decision needed => Accepted
Comment:
I'm in favor of strict checking against `None` when determining is
something is "missing" (which is the case here).
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:17>
Comment (by aaugustin):
Similar cleanup already happened in this file:
https://github.com/django/django/commit/04d9730b127c689b8eda01cbc913efa6e2eb230b#L0L55
The patch fixes the two last instances of `if foo:`.
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:18>
Comment (by timo):
https://github.com/django/django/pull/505
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:19>
* status: assigned => closed
* resolution: => fixed
Comment:
Fixed in [6bdc47f75ca].
--
Ticket URL: <https://code.djangoproject.com/ticket/13137#comment:20>