<commit_before>from django.contrib.gis import admin
from uscampgrounds.models import *

class CampgroundAdmin(admin.OSMGeoAdmin):
    list_display = ('name', 'campground_code', 'campground_type', 'phone', 'sites', 'elevation', 'hookups', 'amenities')
    list_filter = ('campground_type',)

admin.site.register(Campground, CampgroundAdmin)<commit_msg>Allow searching campgrounds by name for convenience.<commit_after>from django.contrib.gis import admin
from uscampgrounds.models import *

class CampgroundAdmin(admin.OSMGeoAdmin):
    list_display = ('name', 'campground_code', 'campground_type', 'phone', 'sites', 'elevation', 'hookups', 'amenities')
    list_filter = ('campground_type',)
    search_fields = ('name',)

admin.site.register(Campground, CampgroundAdmin)
{'fraction_non_alphanumeric': 0.13359273670557717, 'fraction_numerical': 0.0, 'mean_word_length': 7.126315789473685, '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': '4974769', 'n_tokens_mistral': 241, 'n_tokens_neox': 232, 'n_words': 51}