Hi!

I'm also trying to use django-registration. In my case the userprofile
is mandatory, so I should create my own form. However, I would like to
use ModelForms for the UserProfile part, but I should also provide
room to enter username, and password. (and I also would like to store
additional data (first name, last name). Could anybody tell me how?

On Jun 13, 11:17 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> 2008/6/13 Chr1s <[EMAIL PROTECTED]>:
>
> > But still I don't know how to implement this, anyone could give me a
> > simple example? thanks very much
>
> This feature is intended for a situation where each of the following is true:
>
> 1. You have a custom user-profile model.
> 2. The user-profile model has been written in such a way that an
> instance can be created using nothing but default values (e.g., with
> no input whatsoever from the user).
>
> If that is the case, simply write a function which can create an
> instance using nothing but default values, and pass that as the
> argument.
>
> If that is not the case, you will either need to write a more complex
> custom form (to handle any additional information you want to collect)
> or create the profile in a separate step (e.g., using
> django-profiles).
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to