src/clubs/admin.py
Similar blocks of code found in 2 locations. Consider refactoring.from django.contrib import adminSimilar blocks of code found in 2 locations. Consider refactoring. Similar blocks of code found in 2 locations. Consider refactoring.from associations.admin import ASSOCIATION_SEARCH_FIELDSSimilar blocks of code found in 2 locations. Consider refactoring.from clubs.models import ClubSimilar blocks of code found in 2 locations. Consider refactoring. Similar blocks of code found in 2 locations. Consider refactoring.CLUB_SEARCH_FIELDS = ["name", "bhv_id"] + ["association__" + field for field in ASSOCIATION_SEARCH_FIELDS]Similar blocks of code found in 2 locations. Consider refactoring. Similar blocks of code found in 2 locations. Consider refactoring. Similar blocks of code found in 2 locations. Consider refactoring.@admin.register(Club)Similar blocks of code found in 2 locations. Consider refactoring.class ClubAdmin(admin.ModelAdmin):Similar blocks of code found in 2 locations. Consider refactoring. search_fields = CLUB_SEARCH_FIELDS