#19103: Docs for swappable model option
-------------------------------+--------------------------------------
Reporter: me@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: wontfix
Keywords: swappable | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by Justin Michalicek):
I found this today after fighting with getting swappable models working
for an app, digging through the source to find the undocumented
`Meta.swappable` for models, and then further finding places in the
swappable model code specifically looking for `AUTH_USER_MODEL`.
I'm very curious as to if there's any plan to complete this functionality.
Currently, it seems to work as long as your settings actually have the
setting specified in `swappable` on your model, which is of course not
great when relying on the default models, but means it's apparently close
to being functional. I saw a few other things when looking at existing
migrations on the app I am working with which looked like they had the
potential to go awry but I haven't tested yet to see.
I had noticed the app mentioned above, but ignored it initially assuming
it was outdated and no longer needed. For now, I will of course give it a
try since it is still actively maintained.
--
Ticket URL: <https://code.djangoproject.com/ticket/19103#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070191b4847001-6d88d0f2-3bdd-46c1-8d7e-c473a0a26c9f-000000%40eu-central-1.amazonses.com.