I think you'll find that at least the Authentication form is wrong as well
- at least in the sense that it calls the field username and it doesn't
validate as an email. Once we get better at html5 fields as well, it won't
be the correct input type.

Admin registration, the management commands, and the manager would also all
need to be different.

I'd rather see auth get less magical and abstract, not more. I already find
the existence of USERNAME_FIELD rather ugly. This whole approach is very
implicit.
On 19 Sep 2013 22:13, "Aaron Merriam" <aaronmerr...@gmail.com> wrote:

> I'm not sure it was the intention in the design of swappable.
>
>
> I don't know the intended use of swappable, but this seems like exactly
> the type of thing that a 'swappable' model should be able to do.
>
>
>> However, we still have the issue of different forms, urls, views etc all
>> based off the changed model.
>
>
> Marc, can you explain why you feel we need different forms, urls, views,
> etc.  The only forms that would not work appropriately with EmailUser would
> be UserCreation and UserChange forms, both of which can be modified to work
> correctly with EmailUser or other custom user models .  The views in
> d.c.auth all work correctly with the proposed EmailUser and most custom
> user models.   The urls in d.c.auth are not concerned with the username
> field so I don't see an issue there.  The ModelAdmin class in d.c.auth can
> also be modified to respect USERNAME_FIELD and work with EmailUser.
>
>  Making these change automatically would be horrible.
>
>
> Can you explain why this would be horrible.  The changes proposed in the
> 'authtools' style approach make d.c.auth more abstract in ways that make
> using a custom user model easier, while still keeping d.c.auth functioning
> the same when the user has not been swapped out.  To me, this is a step
> towards making custom user models easier and thus, a bonus.
>
> --
> 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 django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-developers.
> 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 django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to