<commit_before>from django.contrib import admin
from uwadmin.lang import *
from uwadmin.utils import *
from uwadmin.models import *


class LangCodeAdmin(admin.ModelAdmin):
    list_display = ('langcode', 'langname')
    list_display_links = ('langcode',)
    search_fields = ('langcode', 'langname')
    actions = ['tDSync']
    def tDSync(self, request, queryset):
        created = tDSyncLangs()
        self.message_user(request, 'Created: {0}'.format(created))
    tDSync.short_description = "tD Sync"

class ContactAdmin(admin.ModelAdmin):
    list_display = ('name', 'email', 'phone', 'other', 'checking_entity')
    list_display_links = ('name',)
    list_editable = ('email', 'phone', 'other', 'checking_entity')
    list_filter = ('checking_entity',)
    search_fields = ('name', 'email', 'phone', 'other')
    actions = ['D43Sync']
    def D43Sync(self, request, queryset):
        created = door43Sync()
        self.message_user(request, 'Created: {0}'.format(created))
    D43Sync.short_description = "Door43 User Sync"

class RecentCommunicationAdmin(admin.ModelAdmin):
    list_display = ('contact', 'communication', 'created', 'created_by')
    list_display_links = ('contact',)
    list_filter = ('contact', 'created', 'created_by')
    search_fields = ('contact', 'communication')

class OBSTrackingAdmin(admin.ModelAdmin):
    list_display = ('lang', 'contact', 'date_started', 'notes', 'created', 
        'created_by')
    list_display_links = ('lang',)
    list_editable = ('contact', 'notes')
    list_filter = ('contact', 'date_started')
    search_fields = ('contact', 'notes')

class OBSPublishingAdmin(admin.ModelAdmin):<commit_msg>Added d43username to admin display<commit_after>from django.contrib import admin
from uwadmin.lang import *
from uwadmin.utils import *
from uwadmin.models import *


class LangCodeAdmin(admin.ModelAdmin):
    list_display = ('langcode', 'langname')
    list_display_links = ('langcode',)
    search_fields = ('langcode', 'langname')
    actions = ['tDSync']
    def tDSync(self, request, queryset):
        created = tDSyncLangs()
        self.message_user(request, 'Created: {0}'.format(created))
    tDSync.short_description = "tD Sync"

class ContactAdmin(admin.ModelAdmin):
    list_display = ('name', 'd43username', 'email', 'phone', 'other',
                                                            'checking_entity')
    list_display_links = ('name',)
    list_filter = ('checking_entity',)
    search_fields = ('name', 'email', 'phone', 'other')
    actions = ['D43Sync']
    def D43Sync(self, request, queryset):
        created = door43Sync()
        self.message_user(request, 'Created: {0}'.format(created))
    D43Sync.short_description = "Door43 User Sync"

class RecentCommunicationAdmin(admin.ModelAdmin):
    list_display = ('contact', 'communication', 'created', 'created_by')
    list_display_links = ('contact',)
    list_filter = ('contact', 'created', 'created_by')
    search_fields = ('contact', 'communication')

class OBSTrackingAdmin(admin.ModelAdmin):
    list_display = ('lang', 'contact', 'date_started', 'notes', 'created', 
        'created_by')
    list_display_links = ('lang',)
    list_editable = ('contact', 'notes')
    list_filter = ('contact', 'date_started')
    search_fields = ('contact', 'notes')

class OBSPublishingAdmin(admin.ModelAdmin):
{'fraction_non_alphanumeric': 0.14959689459540162, 'fraction_numerical': 0.008360704687966557, 'mean_word_length': 4.2507836990595615, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7083245', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1019, 'n_words': 223}