<commit_before>from django.contrib import admin

from base.admin import TimeStampedAdmin
from .models import (
    Participant,
    ParticipantTeam,
)

from import_export.admin import ImportExportModelAdmin


@admin.register(Participant)
class ParticipantAdmin(TimeStampedAdmin, ImportExportModelAdmin):
    """
    An abstract base class which provides an
    interface to display user and team status.
    """
    list_display = ('user', 'status', 'team')
    search_fields = ('user', 'status', 'team')
    list_filter = ('status', 'team')
<commit_msg>Participant: Update import export class for Participant model (#1056)<commit_after>from django.contrib import admin

from base.admin import TimeStampedAdmin
from .models import (
    Participant,
    ParticipantTeam,
)

from import_export import resources
from import_export.admin import ImportExportModelAdmin


class ParticipantResource(resources.ModelResource):

    class Meta:
        model = Participant
        fields = ('user__username', 'user__email', 'team', 'status',)
        export_order = ('user__username', 'user__email', 'team', 'status',)


@admin.register(Participant)
class ParticipantAdmin(TimeStampedAdmin, ImportExportModelAdmin):
    """
    An abstract base class which provides an
    interface to display user and team status.
    """
    list_display = ('user', 'status', 'team')
    search_fields = ('user', 'status', 'team')
    list_filter = ('status', 'team')
    resource_class = ParticipantResource

{'fraction_non_alphanumeric': 0.10296096904441454, 'fraction_numerical': 0.0026917900403768506, 'mean_word_length': 4.5278810408921935, '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': '3277285', 'n_tokens_mistral': 410, 'n_tokens_neox': 398, 'n_words': 122}