<commit_before>from rest_framework import serializers
from .models import Webinar


class WebinarSerializer(serializers.ModelSerializer):
    subjects = serializers.SerializerMethodField()

    def get_subjects(self, obj):
        return obj.selected_subjects_json()

    class Meta:
        model = Webinar
        fields = ('id',
                  'start',
                  'end',
                  'description',
                  'speakers',
                  'spaces_remaining',
                  'registration_url',
                  'registration_link_text',
                  'display_on_tutor_page',
                  'subjects')
        read_only_fields = ('id',
                            'start',
                            'end',
                            'description',
                            'speakers',
                            'spaces_remaining',
                            'registration_url',
                            'registration_link_text',
                            'display_on_tutor_page',
                            'subjects')<commit_msg>Added title back to Webinar API (#1336)<commit_after>from rest_framework import serializers
from .models import Webinar


class WebinarSerializer(serializers.ModelSerializer):
    subjects = serializers.SerializerMethodField()

    def get_subjects(self, obj):
        return obj.selected_subjects_json()

    class Meta:
        model = Webinar
        fields = ('id',
                  'start',
                  'end',
                  'title',
                  'description',
                  'speakers',
                  'spaces_remaining',
                  'registration_url',
                  'registration_link_text',
                  'display_on_tutor_page',
                  'subjects')
        read_only_fields = ('id',
                            'start',
                            'end',
                            'title',
                            'description',
                            'speakers',
                            'spaces_remaining',
                            'registration_url',
                            'registration_link_text',
                            'display_on_tutor_page',
                            'subjects')
{'fraction_non_alphanumeric': 0.07934397163120567, 'fraction_numerical': 0.0017730496453900709, 'mean_word_length': 1.0917516218721037, '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': '6166139', 'n_tokens_mistral': 541, 'n_tokens_neox': 521, 'n_words': 93}