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
=========
* :bug:`-` fix broken mailbox admin
* :release:`0.2.3 <2014-12-26>`
* :bug:`-` remove attribute readonly_fields from
: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',)
fieldsets = (
(None, {
'fields': ('username', 'password', 'osuser', 'active')}),
'fields': ('osuser', 'username', 'password', 'active')}),
)
add_fieldsets = (
(None, {
'classes': ('wide',),
'fields': ('username', 'password1', 'password2')}),
'fields': ('osuser', 'username', 'password1', 'password2')}),
)
search_fields = ('username',)
ordering = ('username',)