Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Admin Widget Search permissions and Groups is missing

Django 1.6.2 admin has a widget to search and choose permissions allowed for a User model. The widget looks like this. Permission and Group Widget

I have not updated Django version or anything but I notice that the widget is missing. It is running on Apache with mod_wsgi before and now. Now the widget is

Current widget

Any input or directions on why this happened? Thanks.

like image 954
quiet_penguin Avatar asked Jan 21 '15 02:01

quiet_penguin


1 Answers

Maybe your admin.py code is like this

admin.py

admin.site.register(User)

If you extended Django's basic users,

admin.py

from django.contrib.auth.admin import UserAdmin

class MyUserAdmin(UserAdmin):
    model = User

    fieldsets = UserAdmin.fieldsets + (
        (None, {'fields': ('field1', 'field2',...)}),
    )


admin.site.register(User, MyUserAdmin)
like image 148
J Zero Avatar answered Oct 01 '22 17:10

J Zero