Re: Should a custom user have meta.swappable

2019-12-17 Thread Mike Dewhirst
Thank you James M On 18/12/2019 5:57 pm, James Bennett wrote: On Tue, Dec 17, 2019 at 10:47 PM Mike Dewhirst > wrote: ... and I wonder if my custom user model should have an identical Meta attibute? No, The 'swappable' Meta attribute is private/undo

Re: Should a custom user have meta.swappable

2019-12-17 Thread James Bennett
On Tue, Dec 17, 2019 at 10:47 PM Mike Dewhirst wrote: > ... and I wonder if my custom user model should have an identical Meta > attibute? > No, The 'swappable' Meta attribute is private/undocumented API; if it were meant to be a thing you needed to set, the documentation would tell you to set i

Should a custom user have meta.swappable

2019-12-17 Thread Mike Dewhirst
Looking at django.contrib.auth.models I see ... class User(AbstractUser):     """     Users within the Django authentication system are represented by this     model.     Username and password are required. Other fields are optional.     """     class Meta(AbstractUser.Meta):     swapp