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 <mi...@dewhirst.com.au
<mailto:mi...@dewhirst.com.au>> 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 it, rather than it being hidden away in the source code.
It exists to support Django's ability to replace the default User
model with a custom-defined model class; only the model class that is
meant to be replaceable declares the 'swappable' attribute.
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAL13Cg-G7zqWABf_VyZeUO9PtY67d5S-S7gpGdQwQXwR27mSbA%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAL13Cg-G7zqWABf_VyZeUO9PtY67d5S-S7gpGdQwQXwR27mSbA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/75159cc0-aa16-8192-695f-711d8438c273%40dewhirst.com.au.