<commit_before>from django.contrib import admin
from corehq.form_processor.models import XFormInstanceSQL, CommCareCaseSQL


# note: these require ALLOW_FORM_PROCESSING_QUERIES = True in your localsettings.py to work
admin.site.register(XFormInstanceSQL)
admin.site.register(CommCareCaseSQL)<commit_msg>more useful admin for XFormInstanceSQL<commit_after>from django.contrib import admin
from corehq.form_processor.models import XFormInstanceSQL, CommCareCaseSQL


# note: these require ALLOW_FORM_PROCESSING_QUERIES = True in your localsettings.py to work
@admin.register(XFormInstanceSQL)
class XFormInstanceSQLAdmin(admin.ModelAdmin):
    date_hierarchy = 'received_on'
    list_display = ('form_id', 'domain', 'xmlns', 'user_id', 'received_on')
    list_filter = ('domain',)
    ordering = ('received_on',)

admin.site.register(CommCareCaseSQL)
{'fraction_non_alphanumeric': 0.08726415094339622, 'fraction_numerical': 0.0, 'mean_word_length': 7.163461538461538, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '3926290', 'n_tokens_mistral': 267, 'n_tokens_neox': 256, 'n_words': 59}