repair mailbox creation admin

This commit is contained in:
Jan Dittberner 2014-12-27 00:04:02 +01:00
parent 92f25df39d
commit 8f5812ff29
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,8 @@
Changelog Changelog
========= =========
* :bug:`-` fix broken mailbox admin
* :release:`0.2.3 <2014-12-26>` * :release:`0.2.3 <2014-12-26>`
* :bug:`-` remove attribute readonly_fields from * :bug:`-` remove attribute readonly_fields from
:py:class:`osusers.admin.UserAdmin` to make saving of additional groups work :py:class:`osusers.admin.UserAdmin` to make saving of additional groups work

View file

@ -113,12 +113,12 @@ class MailboxAdmin(ActivationChangeMixin, admin.ModelAdmin):
list_filter = ('active',) list_filter = ('active',)
fieldsets = ( fieldsets = (
(None, { (None, {
'fields': ('username', 'password', 'osuser', 'active')}), 'fields': ('osuser', 'username', 'password', 'active')}),
) )
add_fieldsets = ( add_fieldsets = (
(None, { (None, {
'classes': ('wide',), 'classes': ('wide',),
'fields': ('username', 'password1', 'password2')}), 'fields': ('osuser', 'username', 'password1', 'password2')}),
) )
search_fields = ('username',) search_fields = ('username',)
ordering = ('username',) ordering = ('username',)