I have this code to add a new user :

class CustomerForm(ModelForm):
   
    class Meta:
        model = CustomerProfile

def add(request):
    [..]
        if request.method == 'POST':
            form = CustomerForm(customer, request.POST)
            f.save()
        else:
            form = CustomerForm(customer)
        return render_to_response('customer/add.html', locals(), 
RequestContext(request, {}))
    [..]


which automagically creates a web form where you choose among existing 
users as one of the CustomerProfile fields.

Now since my app as to be (subnormal)user-friendly I want the code to 
render just one form with name/password fields among the profile ones, 
and no existing users choice-list, is it possible ?

--~--~---------~--~----~------------~-------~--~----~
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