<commit_before># encoding: utf-8
# copyright Vimba inc. 2009
# programmer : <NAME>

import sys

from django.contrib import admin
from django.contrib.admin.views.decorators import staff_member_required
from django.conf import settings

from site_media.models import *

class ImageCategoryTranslationInline(admin.StackedInline):
    model = ImageCategoryTranslation
    extra = 1

class ImageCategoryAdmin(admin.ModelAdmin):
    inlines = [ImageCategoryTranslationInline]
admin.site.register(ImageCategory, ImageCategoryAdmin)


class ImageDescriptionInline(admin.StackedInline):
    model = ImageDescription
    extra = 1

class ImageAdmin(admin.ModelAdmin):
    inlines = [ImageDescriptionInline]
admin.site.register(Image, ImageAdmin)<commit_msg>add information for image in admin<commit_after># encoding: utf-8
# copyright Vimba inc. 2009
# programmer : <NAME>

import sys

from django.contrib import admin
from django.contrib.admin.views.decorators import staff_member_required
from django.conf import settings

from site_media.models import *

class ImageCategoryTranslationInline(admin.StackedInline):
    model = ImageCategoryTranslation
    extra = 1

class ImageCategoryAdmin(admin.ModelAdmin):
    inlines = [ImageCategoryTranslationInline]
admin.site.register(ImageCategory, ImageCategoryAdmin)


class ImageDescriptionInline(admin.StackedInline):
    model = ImageDescription
    extra = 1

class ImageAdmin(admin.ModelAdmin):
    inlines = [ImageDescriptionInline]
    list_display = ('default_name', 'file', 'file_size',)
    filter_vertical = ('category',)
admin.site.register(Image, ImageAdmin)
{'fraction_non_alphanumeric': 0.08079552517091361, 'fraction_numerical': 0.00870105655686762, 'mean_word_length': 5.764705882352941, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3381821', 'n_tokens_mistral': 446, 'n_tokens_neox': 440, 'n_words': 110}