<commit_before>from django.contrib import admin
from .models import RuleType, QuestionDataType, VirtualOptionType, Survey, TranslationSurvey, Chart, ResultsIntake

#Results_Intake, Results_Monthly

class ResultsIntake_Admin(admin.ModelAdmin):
    list_display = ('id','user','timestamp')
    search_fields = ['id']

class Results_Monthly_Admin(admin.ModelAdmin):
    #list_display = ('id','surveruser','timestamp')
    list_display = ('id','timestamp')

admin.site.register(RuleType)
admin.site.register(QuestionDataType)
admin.site.register(VirtualOptionType)
admin.site.register(Survey)
admin.site.register(TranslationSurvey)
admin.site.register(Chart)
admin.site.register(ResultsIntake, ResultsIntake_Admin)
#admin.site.register(Results_Monthly, Results_Monthly_Admin)<commit_msg>Add user in admin view<commit_after>from django.contrib import admin
from django.contrib.auth.models import User
from .models import RuleType, QuestionDataType, VirtualOptionType, Survey, TranslationSurvey, Chart, ResultsIntake, ResultsMonthly

class ResultsIntake_Admin(admin.ModelAdmin):
    list_display = ('id','user', 'timestamp')
    search_fields = ['id']

class ResultsMonthly_Admin(admin.ModelAdmin):
    list_display = ('id','user','timestamp')
    #list_display = ('id','timestamp')

admin.site.register(RuleType)
admin.site.register(QuestionDataType)
admin.site.register(VirtualOptionType)
admin.site.register(Survey)
admin.site.register(TranslationSurvey)
admin.site.register(Chart)
admin.site.register(ResultsIntake, ResultsIntake_Admin)
admin.site.register(ResultsMonthly, ResultsMonthly_Admin)
{'fraction_non_alphanumeric': 0.11620603015075377, 'fraction_numerical': 0.0, 'mean_word_length': 8.208092485549132, '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': '6473683', 'n_tokens_mistral': 463, 'n_tokens_neox': 463, 'n_words': 83}