<commit_before>'''
Created on 18/mag/2013

@author: <NAME>
'''

from django.contrib import admin
from sorl.thumbnail.admin import AdminImageMixin
from .models import Image, Gallery

class ImageInline(AdminImageMixin, admin.StackedInline):
    model = Image
    extra = 3
    fieldsets = (
        (None, {
            'fields' : ('src',)
        }),
        ('Attributes', {
            'classes' : ('collapse',),<commit_msg>Fix to the inline image admin class.<commit_after>'''
Created on 18/mag/2013

@author: <NAME>
'''

from django.contrib import admin
from sorl.thumbnail.admin import AdminInlineImageMixin
from .models import Image, Gallery

class ImageInline(AdminInlineImageMixin, admin.StackedInline):
    model = Image
    extra = 3
    fieldsets = (
        (None, {
            'fields' : ('src',)
        }),
        ('Attributes', {
            'classes' : ('collapse',),
{'fraction_non_alphanumeric': 0.12994350282485875, 'fraction_numerical': 0.015819209039548022, 'mean_word_length': 2.8189655172413794, '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': '1955315', 'n_tokens_mistral': 271, 'n_tokens_neox': 264, 'n_words': 71}