<gh_stars>0
from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin

from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import CustomUser

class CustomUserAdmin(UserAdmin):
	add_form = CustomUserCreationForm
	form = CustomUserChangeForm
	model = CustomUser
	list_display = ['email', 'username']
	fieldsets = UserAdmin.fieldsets + (
    ("Bio", {'fields': ('bio',)}), ("Social Media links", {'fields': ('instagram_url','tiktok_url','twitter_url','youtube_url',)}),
)



admin.site.register(CustomUser, CustomUserAdmin)
from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin

from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import CustomUser

class CustomUserAdmin(UserAdmin):
	add_form = CustomUserCreationForm
	form = CustomUserChangeForm
	model = CustomUser
	list_display = ['email', 'username']
	fieldsets = UserAdmin.fieldsets + (
    ("Bio", {'fields': ('bio',)}), ("Social Media links", {'fields': ('instagram_url','tiktok_url','twitter_url','youtube_url',)}),
)



admin.site.register(CustomUser, CustomUserAdmin)