I wonder why the avatar field is still display in the form after passing another form class. Still the built-in form is used. What's wrong?
------ forms.py from django.forms import ModelForm from profiles import utils class _ProfileForm(ModelForm): class Meta: model = utils.get_profile_model() exclude = ('user', 'avatar',) # User will be filled in by the view. ------ urls.py from myproject.myapp.forms import _ProfileForm url(r'^edit/$', edit_profile, {'form_class': _ProfileForm} ,name='profiles_edit_profile'), Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---