<commit_before># -*- coding: UTF-8 -*-
from __future__ import unicode_literals

from django.contrib import admin

from .models import LBAttachment


class LBAttachmentAdmin(admin.ModelAdmin):
    search_fields = ('user__username', 'filename', 'act_members_param', 'notice_members_param', 'share_members_param')
    list_display = ('user', 'filename', 'is_img', 'num_downloads', 'is_active', )
    list_filter = ('is_img', 'suffix')
    raw_id_fields = ('user',)<commit_msg>fix admin.py (user to created_by)<commit_after># -*- coding: UTF-8 -*-
from __future__ import unicode_literals

from django.contrib import admin

from .models import LBAttachment


class LBAttachmentAdmin(admin.ModelAdmin):
    search_fields = ('created_by__username', 'filename', 'act_members_param', 'notice_members_param', 'share_members_param')
    list_display = ('created_by', 'filename', 'is_img', 'num_downloads', 'is_active', )
    list_filter = ('is_img', 'suffix')
    raw_id_fields = ('created_by',)
{'fraction_non_alphanumeric': 0.13922764227642276, 'fraction_numerical': 0.0020325203252032522, 'mean_word_length': 5.936619718309859, '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': '1640424', 'n_tokens_mistral': 317, 'n_tokens_neox': 310, 'n_words': 71}