"""Clothes models admin."""

# Django
from django.contrib import admin

# Models
from tclothes.clothes.models import ClothesModel, InteractionsModel


@admin.register(ClothesModel)
class ClothesAdmin(admin.ModelAdmin):
    """Clothes model admin."""

    list_display = ('id', 'category', 'owner_is', 'size', 'color')
    search_fields = ('category', 'color', 'gender')
    list_filter = ('public', 'likes', 'dislikes', 'super_likes')
    readonly_fields = ['clothe_images', 'likes', 'dislikes', 'super_likes']


@admin.register(InteractionsModel)
class InteractionsAdmin(admin.ModelAdmin):
    """Interactions model admin."""
    list_display = ('id', 'clothe', 'user', 'value')


"""Clothes models admin."""

# Django
from django.contrib import admin

# Models
from tclothes.clothes.models import ClothesModel, InteractionsModel


@admin.register(ClothesModel)
class ClothesAdmin(admin.ModelAdmin):
    """Clothes model admin."""

    list_display = ('id', 'category', 'owner_is', 'size', 'color')
    search_fields = ('category', 'color', 'gender')
    list_filter = ('public', 'likes', 'dislikes', 'super_likes')
    readonly_fields = ['clothe_images', 'likes', 'dislikes', 'super_likes']


@admin.register(InteractionsModel)
class InteractionsAdmin(admin.ModelAdmin):
    """Interactions model admin."""
    list_display = ('id', 'clothe', 'user', 'value')


Clothes models admin. # Django # Models Clothes model admin. Interactions model admin.