<commit_before>from reversion.admin import VersionAdmin

from django.contrib import admin

from .models import Application


class ApplicationAdmin(VersionAdmin):
    search_fields = ('partner__company_name', 'editor__wp_username')
    list_display = ('id', 'partner', 'editor',)
    list_filter = ('status', 'partner')
    raw_id_fields = ('editor',)

    # reversion options
    history_latest_first = True

admin.site.register(Application, ApplicationAdmin)<commit_msg>no need to load all the external objects in application<commit_after>from reversion.admin import VersionAdmin

from django.contrib import admin

from .models import Application


class ApplicationAdmin(VersionAdmin):
    search_fields = ('partner__company_name', 'editor__wp_username')
    list_display = ('id', 'partner', 'editor',)
    list_filter = ('status', 'partner')
    raw_id_fields = ('editor', 'sent_by', 'specific_stream', 'parent', 'partner', )

    # reversion options
    history_latest_first = True

admin.site.register(Application, ApplicationAdmin)
{'fraction_non_alphanumeric': 0.10789980732177264, 'fraction_numerical': 0.0, 'mean_word_length': 5.534591194968553, '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': '6485076', 'n_tokens_mistral': 293, 'n_tokens_neox': 287, 'n_words': 76}