Customizing the django user model ( ERROR :value does not refer to a Field )

106 views
Skip to first unread message

Arash Ab

unread,
Jun 24, 2019, 7:44:14 AM6/24/19
to django CMS developers
hi guys, i'm trying to customize the django user model but i get this error:

<class 'cms.admin.useradmin.PageUserAdmin'>: (admin.E033) The value of 'ordering[0]' refers to 'username', which is not an attribute of 'cms.PageUser'.
<class 'cms.admin.useradmin.PageUserAdmin'>: (admin.E108) The value of 'list_display[0]' refers to 'username', which is not a callable, an attribute of 'PageUserAdmin', or an attribute or method on 'cms.PageUser'.
<class 'cms.admin.useradmin.PageUserAdmin'>: (admin.E108) The value of 'list_display[2]' refers to 'first_name', which is not a callable, an attribute of 'PageUserAdmin', or an attribute or method on 'cms.PageUser'.
<class 'cms.admin.useradmin.PageUserAdmin'>: (admin.E108) The value of 'list_display[3]' refers to 'last_name', which is not a callable, an attribute of 'PageUserAdmin', or an attribute or method on 'cms.PageUser'.
<class 'cms.admin.useradmin.PageUserAdmin'>: (admin.E116) The value of 'list_filter[0]' refers to 'is_staff', which does not refer to a Field.
<class 'cms.admin.useradmin.PageUserAdmin'>: (admin.E116) The value of 'list_filter[2]' refers to 'is_active', which does not refer to a Field.

any suggestions?
Reply all
Reply to author
Forward
0 new messages