<commit_before>from django.contrib import admin
from evilsheep.catalog.models import Product, SuperCategory, SubCategory, Book

class BookAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    fieldsets = (
        (None, {
                'fields': ('name', 'slug', 'author', 'price', 'description', 'category', 'is_active', 'is_featured', 'image', 'thumbnail', 'meta_keywords', 'meta_description', )
        }),
        ('Advanced options', {
            'classes': ('collapse',),
            'fields': ('brand', 'bonus_offer', 'quantity', 'sku', 'doba_id', 'doba_price', 'doba_shipping_cost', 'binding', 'edition', 'language', 'pages', 'publisher', 'subject',)
        }),
    )
    

class SuperCategoryAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}


class SubCategoryAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}

admin.site.register(Book, BookAdmin)
admin.site.register(SuperCategory, SuperCategoryAdmin)
admin.site.register(SubCategory, SubCategoryAdmin)


<commit_msg>added admin classes for product and Movies<commit_after>from django.contrib import admin
from evilsheep.catalog.models import SuperCategory, SubCategory, Book, Movie, Product

class BookAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    fieldsets = (
        (None, {
                'fields': ('name', 'slug', 'author', 'price', 'description', 'category', 'is_active', 'is_featured', 'image', 'thumbnail', 'meta_keywords', 'meta_description', )
        }),
        ('Advanced options', {
            'classes': ('collapse',),
            'fields': ('brand', 'bonus_offer', 'quantity', 'sku', 'doba_id', 'doba_price', 'doba_shipping_cost', 'binding', 'edition', 'language', 'pages', 'publisher', 'subject',)
        }),
    )
    

class MovieAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    
class SuperCategoryAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}


class SubCategoryAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}

class ProductAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    
admin.site.register(Book, BookAdmin)
admin.site.register(SuperCategory, SuperCategoryAdmin)
admin.site.register(SubCategory, SubCategoryAdmin)
admin.site.register(Movie, MovieAdmin)
admin.site.register(Product, ProductAdmin)

{'fraction_non_alphanumeric': 0.16820469798657717, 'fraction_numerical': 0.0, 'mean_word_length': 4.546511627906977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6388909', 'n_tokens_mistral': 723, 'n_tokens_neox': 718, 'n_words': 151}