On Tue, Nov 6, 2012 at 8:55 AM, André Dieb <andre.d...@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.d...@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! > > >> Yours, >> Russ Magee %-) >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> 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. >> > > > -- > @andredieb <http://www.twitter.com/andredieb> > -- @andredieb <http://www.twitter.com/andredieb> -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.