Hi, I have created the following user form for my custom user model:
class UsersForm(ModelForm): class Meta: model = UserAccount fields = ('is_active', 'is_superuser', 'is_templog', 'is_crewreg', 'is_spaceman','first_name', 'last_name', 'company', 'address1', 'address2', 'address3', 'zipcode', 'city', 'country', 'email', 'favourite_event', 'user_permissions') def __init__(self, *args, **kwargs): super(UsersForm, self).__init__(*args, **kwargs) self.fields['country'].required = False self.fields['user_permissions'].widget.attrs['class'] = 'input-xxlarge' self.fields['user_permissions'].widget.attrs['style'] = 'min-height:150px' self.fields['user_permissions'].help_text = 'Specific permissions for this user. Hold down "Control", or "Command" on a Mac, to select more than one.' But when I save it via form.save(), any changed permissions are not saved. What do I have to do to change this? thanks Thomas -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7c11c2b2-4c2e-46d5-93cd-97924cf79bc9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.