python - how to disable privacy or anyother feature in edit profile form in userena? -
i've tried many things can't figure out. followed 1 here, django-userena removing mugshot isn't working me. tried 1 here https://www.reddit.com/r/django/comments/1mgk3b/adding_and_removing_custom_django_userena_form/ isn't working. how did it, in accounts/forms.py have.
from userena.forms import editprofileform class editprofileformextra(editprofileform): class meta(editprofileform.meta): exclude = editprofileform.meta.exclude + ['privacy']
and inside accounts/urls.py have
from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'^accounts/(?p<username>[\.\w-]+)/edit/$', 'userena.views.profile_edit', {'edit_profile_form': editprofileformextra}, name='userena_profile_edit'), )
any appreciated
Comments
Post a Comment