Changes between Version 1 and Version 2 of Ticket #36225, comment 11


Ignore:
Timestamp:
Sep 25, 2025, 10:42:46 AM (38 hours ago)
Author:
Jacob Walls

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36225, comment 11

    v1 v2  
    11Reopened #35729 as a usability issue in the serialization framework that model subclasses cannot opt out of natural key serialization.
    22
    3 This issue was opened after OP bit the bullet and reimplemented the User model from scratch. I agree it's not correct for createsuperuser to deduce from `field.unique` that we've doc'd that you can deliberately omit `get_by_natural_key()` and also doc'd that USERNAME_FIELD can be non-unique.
     3This issue was opened after OP bit the bullet and reimplemented the User model from scratch. I agree it's not correct for createsuperuser to deduce from `field.unique` that `get_by_natural_key()` exists, given that we've doc'd you can deliberately omit `get_by_natural_key()` and also that USERNAME_FIELD can be non-unique.
    44
    55Catching `AttributeError` here seems reasonable.
Back to Top