<commit_before>from django.contrib import admin

from models import (Poll, RadioPoll, RadioPollChoice,
                    RangePoll, RangePollChoice, Vote)


class RangePollChoiceInline(admin.StackedInline):
    """Poll Range Votes Inline."""
    model = RangePollChoice
    extra = 0


class RangePollInline(admin.StackedInline):
    """Range Poll Inline."""
    model = RangePoll
    extra = 0


class RadioPollChoiceInline(admin.StackedInline):
    """Radio Poll Choice Inline."""
    model = RadioPollChoice
    extra = 0
<commit_msg>Make 'votes' field in voting app readonly.<commit_after>from django.contrib import admin

from models import (Poll, RadioPoll, RadioPollChoice,
                    RangePoll, RangePollChoice, Vote)


class RangePollChoiceInline(admin.StackedInline):
    """Poll Range Votes Inline."""
    model = RangePollChoice
    extra = 0
    readonly_fields = ['votes']


class RangePollInline(admin.StackedInline):
    """Range Poll Inline."""
    model = RangePoll
    extra = 0


class RadioPollChoiceInline(admin.StackedInline):
    """Radio Poll Choice Inline."""
    model = RadioPollChoice
    extra = 0

{'fraction_non_alphanumeric': 0.09482001755926252, 'fraction_numerical': 0.0052677787532923615, 'mean_word_length': 3.541832669322709, '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': '7017661', 'n_tokens_mistral': 346, 'n_tokens_neox': 343, 'n_words': 92}