If you look at the following example:

https://docs.djangoproject.com/en/1.4/topics/auth/#storing-additional-information-about-users

With `AUTH_PROFILE_MODULE = ’accounts.UserProfile’`: 'accounts' is a standard 
application that you add to your INSTALLED_APPS setting, and just like any 
other applications, it can benefit from migrations in Django 1.7.

The AUTH_PROFILE_MODULE *setting* was only used by `User.get_profile()` - see 
https://github.com/django/django/blob/stable/1.4.x/django/contrib/auth/models.py#L376-L404
 - to know which model to query when you called `user.get_profile()`.

In Django 1.7 both the setting and the `User.get_profile()` method are gone, 
but that’s not something that migrations could help you with anyway, since it 
was an API at the Python level.

I hope that helps.

-- 
Loic

On Jan 24, 2014, at 11:50 AM, Ryan Hiebert <[email protected]> wrote:

> On Thu, Jan 23, 2014 at 10:30 PM, Russell Keith-Magee 
> <[email protected]> wrote:
> 
> On Fri, Jan 24, 2014 at 9:05 AM, Brian Neal <[email protected]> wrote:
> Hello,
> 
> The deprecation timeline says this about Django 1.7:
> 
> "The AUTH_PROFILE_MODULE setting, and the get_profile() method on the User 
> model, will be removed."
> 
> The dev 1.7 release notes say that the new schema migration is scheduled to 
> land in 1.7.
> 
> I must be missing something -- why is this not possible with the current code 
> in trunk?
> 
> I think its much more likely that I'm the one missing something. Thanks for 
> going back and forth with me. 
> 
> I'm afraid I either don't see the dependency on AUTH_PROFILE_MODULE that 
> concerns you, or the problem that it's deprecation will cause. What migration 
> are you trying to perform that requires the existence of a code-level API to 
> support it?
> 
> Assuming that the changes from the deprecation policy are in trunk now that 
> the alpha has landed, any use of the AUTH_PROFILE_MODULE must be eliminated 
> _before_ moving to 1.7, since they are not just deprecated, but _removed_ in 
> 1.7. Migrating to 1.7 will _break_ code that uses it. This is normal and 
> expected.
> 
> Since the new migration system lands in 1.7, and AUTH_PROFILE_MODULE is 
> removed in 1.7, then it is clear that it won't be possible to use the new 
> migration system to do the custom migrations that may be required to stop 
> using the AUTH_PROFILE_MODULE.
> 
> Allowing one more release before AUTH_PROFILE_MODULE is removed would allow 
> him to use the new migration system to create a custom migration to migrate 
> away from using the profiles. Otherwise, he'd need to use South or go through 
> two code change cycles.
> 
> I hope this clears up either why you're confused, or why I am. I'm very sorry 
> if it's me, I hate to waste your time.
> 
>  
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-developers.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/CABpHFHTc277wKDVSKM302EfeN5Fi76UmkU-aZ32EHNfJiELjaA%40mail.gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/C5FD95F2-DD67-4531-AFFC-124EFD5B5947%40sixmedia.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to