On Monday, November 19, 2012 9:36:40 PM UTC-6, Russell Keith-Magee wrote: > > > See the development docs for custom user models to see how this works in > practice, and adapt for your purposes. I'm intentionally going to leave the > rest vague. Call it an entrance exam -- if you can't work out what's going > on from what I've given you here and reading Django's source code, you > probably shouldn't be playing around with this sort of experimental > feature. However, I'm happy to answer specific questions if you get stuck > deep in the grass. > > Once again, I must stress that this is unofficial, and you'll be in > experimental territory if you do this. The reason this is unofficial is > because some on the core team are concerned about reopening old wounds -- > essentially, swapping models can lead to all sorts of headaches, and the > Django project has had these headaches in the past. Consider, for example, > if a user changes the CUSTOM_PERSON_MODEL after they've synchronised. > Hilarity *will* ensue. There's also problems related to forms and setting > an implied contract around your swappable model. > > However, it *can* work; and to my mind, we're all consenting adults, so as > long as we all understand the potential pitfalls, this is the sort of thing > that may be useful. > > If I haven't scared you off by this point, I certainly hope you'll have a > tinker and see if this might be palatable for your project. >
Sorry, not scared me off yet :) I'll go take a look at that code. I *was *aware of the replaceable User model, but didn't consider that perhaps this was also setting a standard framework for any replaceable model. If the framework is simple enough, I could gear my own application to use it and dropship code from 1.5 into my own project, much like Django dropshipped dictconfig for the logging module. Thanks for the reference, and I'll shoot you questions if/when I have them. >> -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/3x1_N94W7AwJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.