Sorry i forgot to post another change i did in OurUserCreationForm in the method "save" i have user = super(OurUserCreationForm, self).save(commit=False) instead of user = super(UserCreationForm, self).save(commit=False)
Copy&Pasting the code is not a good solution at all, but it works. If only i could derive from UserCreationForm and UserChangeForm to reflect the changes, but i could not get it working with inheritance and i am a relatively novice python programmer On Jul 18, 3:01 pm, selcukcihan <selcukci...@gmail.com> wrote: > Hi, thanks for the tip. I decided to just replicate > auth.forms.UserCreationForm and auth.forms.UserChangeForm as > OurUserCreationForm and OurUserChangeForm > Ofcourse with the difference of having username as a forms.EmailField > > In admin.py of my application i did > > admin.site.unregister(User) > UserAdmin.form = OurUserChangeForm > UserAdmin.add_form = OurUserCreationForm > admin.site.register(User, UserAdmin) > > now it is working as needed --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---