from django.contrib import admin
from .models import MyUser
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import gettext_lazy as _
@admin.register(MyUser)
class MyUserAdmin(UserAdmin):
    list_display = [
        'username',
        'email',
        'introduce',
        'company',
        'profession',
        'address',
        'telephone',
        'wx',
        'qq',
        'photo',
    ]
    fieldsets = list(UserAdmin.fieldsets)
    fieldsets[1] = (_('Personal info'),{'fields':('name','introduce','email','company','profession','address',
                                        'telephone','wx','qq','photo')})
    def get_queryset(self, request):
        qs = super().get_queryset(request)
        return qs.filter(id=request.user.id)

# Register your models here.

92c645a007b2abaa81b0ba1d9c300a28f852dc7d
<mask token>


@admin.register(MyUser)
class MyUserAdmin(UserAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


@admin.register(MyUser)
class MyUserAdmin(UserAdmin):
    <mask token>
    <mask token>
    <mask token>

    def get_queryset(self, request):
        qs = super().get_queryset(request)
        return qs.filter(id=request.user.id)

<mask token>


@admin.register(MyUser)
class MyUserAdmin(UserAdmin):
    list_display = ['username', 'email', 'introduce', 'company',
        'profession', 'address', 'telephone', 'wx', 'qq', 'photo']
    fieldsets = list(UserAdmin.fieldsets)
    fieldsets[1] = _('Personal info'), {'fields': ('name', 'introduce',
        'email', 'company', 'profession', 'address', 'telephone', 'wx',
        'qq', 'photo')}

    def get_queryset(self, request):
        qs = super().get_queryset(request)
        return qs.filter(id=request.user.id)

from django.contrib import admin
from .models import MyUser
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import gettext_lazy as _


@admin.register(MyUser)
class MyUserAdmin(UserAdmin):
    list_display = ['username', 'email', 'introduce', 'company',
        'profession', 'address', 'telephone', 'wx', 'qq', 'photo']
    fieldsets = list(UserAdmin.fieldsets)
    fieldsets[1] = _('Personal info'), {'fields': ('name', 'introduce',
        'email', 'company', 'profession', 'address', 'telephone', 'wx',
        'qq', 'photo')}

    def get_queryset(self, request):
        qs = super().get_queryset(request)
        return qs.filter(id=request.user.id)

from django.contrib import admin
from .models import MyUser
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import gettext_lazy as _
@admin.register(MyUser)
class MyUserAdmin(UserAdmin):
    list_display = [
        'username',
        'email',
        'introduce',
        'company',
        'profession',
        'address',
        'telephone',
        'wx',
        'qq',
        'photo',
    ]
    fieldsets = list(UserAdmin.fieldsets)
    fieldsets[1] = (_('Personal info'),{'fields':('name','introduce','email','company','profession','address',
                                        'telephone','wx','qq','photo')})
    def get_queryset(self, request):
        qs = super().get_queryset(request)
        return qs.filter(id=request.user.id)

# Register your models here.
