<commit_before>from django.contrib import admin

from .models import Member, Committee

class MemberInline(admin.TabularInline):
    model = Member
    extra = 6

class CommitteeAdmin(admin.ModelAdmin):
    """
    Committee admin class.

    We define that the model we use is Committee, that members are editied inline with the committee and that we want to be able to use django_wysiwyg.
    """
    model = Committee
    change_form_template = 'about/admin/change_form.html'
    inlines = [MemberInline]

admin.site.register(Committee, CommitteeAdmin)<commit_msg>Updated the Admin view for committees.<commit_after>from django.contrib import admin

from .models import Member, Committee

class MemberInline(admin.StackedInline):
    model = Member
    extra = 1

class CommitteeAdmin(admin.ModelAdmin):
    """
    Committee admin class.

    We define that the model we use is Committee, that members are editied inline with the committee and that we want to be able to use django_wysiwyg.
    """
    model = Committee
    change_form_template = 'about/admin/change_form.html'
    inlines = [MemberInline]

admin.site.register(Committee, CommitteeAdmin)
{'fraction_non_alphanumeric': 0.06988783433994823, 'fraction_numerical': 0.001725625539257981, 'mean_word_length': 3.9785407725321886, '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': '5542781', 'n_tokens_mistral': 316, 'n_tokens_neox': 316, 'n_words': 114}