<commit_before>from django.contrib import admin
from models import Campaign, Duty, Volunteer


class DutyInline(admin.StackedInline):
    model = Duty


class CampaignAdmin(admin.ModelAdmin):
    list_display = ('name',)
    inlines = (DutyInline,)
admin.site.register(Campaign, CampaignAdmin)


class VolunteerAdmin(admin.ModelAdmin):
    list_display = ('name',)
admin.site.register(Volunteer, VolunteerAdmin)<commit_msg>Feature: seperate admin page for duties.<commit_after>from django.contrib import admin
from models import Campaign, Duty, Volunteer


class DutyInline(admin.StackedInline):
    model = Duty


class CampaignAdmin(admin.ModelAdmin):
    list_display = ('name',)
    inlines = (DutyInline,)
admin.site.register(Campaign, CampaignAdmin)


class VolunteerAdmin(admin.ModelAdmin):
    list_display = ('name',)
admin.site.register(Volunteer, VolunteerAdmin)


class DutyAdmin(admin.ModelAdmin):
    model = Duty
admin.site.register(Duty, DutyAdmin)
{'fraction_non_alphanumeric': 0.10580912863070539, 'fraction_numerical': 0.0, 'mean_word_length': 5.655172413793103, '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': '2604285', 'n_tokens_mistral': 306, 'n_tokens_neox': 285, 'n_words': 66}