From dad9849b48a9ff647929b7c3fba78cb6b0a6cc70 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Fri, 26 Dec 2014 22:38:02 +0100 Subject: [PATCH] remove attribute readonly_fields from UserAdmin --- docs/changelog.rst | 3 +++ gnuviechadmin/osusers/admin.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 70036d8..f7ccf0d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,9 @@ Changelog ========= +* :bug:`-` remove attribute readonly_fields from + :py:class:`osusers.admin.UserAdmin` to make saving of additional groups work + * :release:`0.2.2 <2014-12-26>` * :feature:`-` home and mail base directory creation diff --git a/gnuviechadmin/osusers/admin.py b/gnuviechadmin/osusers/admin.py index aa85d96..a46dbc5 100644 --- a/gnuviechadmin/osusers/admin.py +++ b/gnuviechadmin/osusers/admin.py @@ -65,7 +65,6 @@ class UserCreationForm(forms.ModelForm): class UserAdmin(admin.ModelAdmin): actions = ['perform_delete_selected'] - readonly_fields = ['uid'] add_form = UserCreationForm inlines = [AdditionalGroupInline, ShadowInline]