<commit_before>from django.contrib import admin
from weathertracking.models import WeatherStation, WeatherReport

class WeatherStationAdmin(admin.ModelAdmin):
    list_display = ('code', 'name', 'country', 'latitude', 'longitude', 'auto_poll')
    list_filter = ('auto_poll',)
    search_fields = ('code',)

class WeatherReportAdmin(admin.ModelAdmin):
    list_display = ('station', 'observation_time', 'temperature_celsius',
        'wind_speed_kts', 'wind_direction', 'visibility_mi', 'observation_cycle', 'sky_conditions')
    list_filter = ('station',)
    date_hierarchy = 'observation_time'


admin.site.register(WeatherStation, WeatherStationAdmin)
admin.site.register(WeatherReport, WeatherReportAdmin)<commit_msg>Filtering by station is rather obnoxious now that I'm importing all several thousand of them<commit_after>from django.contrib import admin
from weathertracking.models import WeatherStation, WeatherReport

class WeatherStationAdmin(admin.ModelAdmin):
    list_display = ('code', 'name', 'country', 'latitude', 'longitude', 'auto_poll')
    list_filter = ('auto_poll',)
    search_fields = ('code',)

class WeatherReportAdmin(admin.ModelAdmin):
    list_display = ('station', 'observation_time', 'temperature_celsius',
        'wind_speed_kts', 'wind_direction', 'visibility_mi', 'observation_cycle', 'sky_conditions')
    date_hierarchy = 'observation_time'


admin.site.register(WeatherStation, WeatherStationAdmin)
admin.site.register(WeatherReport, WeatherReportAdmin)
{'fraction_non_alphanumeric': 0.11863270777479892, 'fraction_numerical': 0.0, 'mean_word_length': 6.941489361702128, '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': '1041434', 'n_tokens_mistral': 448, 'n_tokens_neox': 421, 'n_words': 93}