# Problem with register the User in admin

**URL:** <https://forum.djangoproject.com/t/problem-with-register-the-user-in-admin/17473>\
**Category:** Mystery Errors\
**Created:** [December 6, 2022, 7:54pm UTC](https://forum.djangoproject.com/t/problem-with-register-the-user-in-admin/17473 "2022-12-06T19:54:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![reniboyanova](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/reniboyanova/32/10992_2.png) [@reniboyanova](https://forum.djangoproject.com/u/reniboyanova)\
**Post date:** [December 7, 2022, 3:16pm UTC](https://forum.djangoproject.com/t/problem-with-register-the-user-in-admin/17473/3 "2022-12-07T15:16:54Z")

</div>

> [@reniboyanova](#):
>
> ```auto
> (
> 'Personal info',
> {
> 'fields': (
> 'first_name',
> 'last_name',
> 'email',
>  
> ),
> },
> ),
> 
> ```

Ok, but our teacher showed us like this and I am really confused.  
I do it like this and again when I click on some of the users in admin I have this error:

**When I want to add**

# FieldError at /admin/accounts/appbaseuser/add/

Unknown field(s) (firs\_name, last\_name, is\_active, position, date\_joined) specified for AppBaseUser. Check fields/fieldsets/exclude attributes of class AppBaseUserAdmin

**And when I click in the existing one:**

 ![erre](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/0/0bb0301eef9fc43212aa5bfabc1d007fb89030f7.png)

**this is how I do it now, I really can’t understand how to give permission in this situation. I don’t want to change users from the scratch. My code now:**

```auto

@admin.register(UserModel)
class AppBaseUserAdmin(admin.ModelAdmin):
    add_form= RegistrationAppUserForm

    fieldsets = (
        (
        (
            'Permissions',
            {
                'fields': (
                    'is_active',
                    'is_staff',
                    'is_superuser',
                    'groups',
                    'user_permissions',
                ),
            },
        ),
        (
            'Personal info',
            {
                'fields': (
                    'firs_name',
                    'last_name',
                    'position',

                ),
            },
        ),
        (
            'Important dates',
            {
                'fields': (
                    'last_login',
                    'date_joined',
                ),
            },
        ),
    ))

```

---

_[View the full topic](https://forum.djangoproject.com/t/problem-with-register-the-user-in-admin/17473)._
