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

from user.models import Follow, ShoppingCart, FavouriteRecipe, User


class UserAdmin(UserAdmin):
    list_filter = ("first_name", "email")


admin.site.register(Follow)
admin.site.register(ShoppingCart)
admin.site.register(FavouriteRecipe)
admin.site.unregister(User)
admin.site.register(User, UserAdmin)

6951928851ca85344579103630a56b3a557396dc
<mask token>


class UserAdmin(UserAdmin):
    <mask token>


<mask token>

<mask token>


class UserAdmin(UserAdmin):
    list_filter = 'first_name', 'email'


<mask token>

<mask token>


class UserAdmin(UserAdmin):
    list_filter = 'first_name', 'email'


admin.site.register(Follow)
admin.site.register(ShoppingCart)
admin.site.register(FavouriteRecipe)
admin.site.unregister(User)
admin.site.register(User, UserAdmin)

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from user.models import Follow, ShoppingCart, FavouriteRecipe, User


class UserAdmin(UserAdmin):
    list_filter = 'first_name', 'email'


admin.site.register(Follow)
admin.site.register(ShoppingCart)
admin.site.register(FavouriteRecipe)
admin.site.unregister(User)
admin.site.register(User, UserAdmin)

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

from user.models import Follow, ShoppingCart, FavouriteRecipe, User


class UserAdmin(UserAdmin):
    list_filter = ("first_name", "email")


admin.site.register(Follow)
admin.site.register(ShoppingCart)
admin.site.register(FavouriteRecipe)
admin.site.unregister(User)
admin.site.register(User, UserAdmin)
