Sorry to jump in here, please ignore me if I make no sense.

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.


That sounds like a *code migration* not a *database migration*. The 
migrations framework that has just landed focuses, specifically, on changes 
to model definitions.

So it can detect the changes between:

class MyModel(models.Model):
     field = models.IntegerField()

and 

class MyModel(models.Model):
    renamed_field = models.IntegerField()

But it can't detect code usage like:

user.get_profile() 

and

user.my_profile

Is that possibly where the confusion was?
 

On Friday, 24 January 2014 15:50:46 UTC+11, Ryan Hiebert wrote:
>
> On Thu, Jan 23, 2014 at 10:30 PM, Russell Keith-Magee <
> [email protected] <javascript:>> wrote:
>
>   On Fri, Jan 24, 2014 at 9:05 AM, Brian Neal <[email protected]<javascript:>
>>>>>> > 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/2b51d3c1-a537-45a4-8daf-d694ca527d5d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to