On Tue, Nov 6, 2012 at 12:13 PM, André Dieb <
andre...@gmail.com> wrote:
> On Tue, Nov 6, 2012 at 8:55 AM, André Dieb <
andre...@gmail.com> wrote:
>>
>> Em segunda-feira, 5 de novembro de 2012, Russell Keith-Magee escreveu:
>>
>>>
>>> On Mon, Nov 5, 2012 at 7:50 PM, André Dieb <
andre...@gmail.com> wrote:
>>>>
>>>> From what I see on django's source code (dev), there used to be an
>>>> import of django.contrib.auth.models.User inside
>>>> django.contrib.admin.models, which means the answer to your question may be:
>>>> there was no difference.
>>>>
>>> Incorrect - there *is* a difference. The import from admin is a side
>>> effect caused by admin's usage of the auth app; the auth import is the
>>> official location. As a result, the import from admin is not supported, and
>>> may be removed at any time without warning. Unless you like surprises, stick
>>> to the auth import.
>>
>>
>> To be honest I don't see how your answer differs from mine. I said the
>> exact same thing :)
>>
>> PS: right now there is no side-effect (no actual behaviour difference)
>> from using User from admin, since it's originally . Though, I wouldn't
>> recommend since it has already gone away on dev. code.
>
>
> Oops, sorry! My message was clipped.
>
> From a purist POV who's not using django-dev right now, those modules are
> the same, though highly not recommended to use from admin as Russell noticed
> it may change in the future (as it already has).
>
> Thanks!
They are not the same. The model is currently available from
exporting symbols it itself has imported. If that was fixed, your code