from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User

#local
from .models import UserProfile

class CustomUserAdmin(UserAdmin):
    list_display = ('username', 'email', 'first_name', 'last_name', 'id')

class UserProfileAdmin(admin.ModelAdmin):
    list_display = ('id','user', 'gender', 'vote')

admin.site.unregister(User)
admin.site.register(User, CustomUserAdmin)
admin.site.register(UserProfile, UserProfileAdmin)

b2c6897ccb56ea59f826fa701a4185491bfeb080
<mask token>


class UserProfileAdmin(admin.ModelAdmin):
    list_display = 'id', 'user', 'gender', 'vote'


<mask token>

<mask token>


class CustomUserAdmin(UserAdmin):
    list_display = 'username', 'email', 'first_name', 'last_name', 'id'


class UserProfileAdmin(admin.ModelAdmin):
    list_display = 'id', 'user', 'gender', 'vote'


<mask token>

<mask token>


class CustomUserAdmin(UserAdmin):
    list_display = 'username', 'email', 'first_name', 'last_name', 'id'


class UserProfileAdmin(admin.ModelAdmin):
    list_display = 'id', 'user', 'gender', 'vote'


admin.site.unregister(User)
admin.site.register(User, CustomUserAdmin)
admin.site.register(UserProfile, UserProfileAdmin)

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from .models import UserProfile


class CustomUserAdmin(UserAdmin):
    list_display = 'username', 'email', 'first_name', 'last_name', 'id'


class UserProfileAdmin(admin.ModelAdmin):
    list_display = 'id', 'user', 'gender', 'vote'


admin.site.unregister(User)
admin.site.register(User, CustomUserAdmin)
admin.site.register(UserProfile, UserProfileAdmin)

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User

#local
from .models import UserProfile

class CustomUserAdmin(UserAdmin):
    list_display = ('username', 'email', 'first_name', 'last_name', 'id')

class UserProfileAdmin(admin.ModelAdmin):
    list_display = ('id','user', 'gender', 'vote')

admin.site.unregister(User)
admin.site.register(User, CustomUserAdmin)
admin.site.register(UserProfile, UserProfileAdmin)
