<commit_before>from django.contrib.gis import admin

from .models.contributors import SightingsContributor
#from .models.media import SightingsMedia
from .models.sightings import SightingsNonSighting, SightingsSighting
from .models.birds import SightingsBird

class SightingsContributorAdmin(admin.ModelAdmin):
    list_display = ('__str__', 'email', 'activity', 'heard', 'communications',)

class SightingsBirdInline(admin.TabularInline):
    model = SightingsBird
    extra = 0

class SightingsSightingAdmin(admin.OSMGeoAdmin):
    list_display = ('__str__', 'quality',)
    inlines = [SightingsBirdInline]

class SightingsNonSightingAdmin(admin.ModelAdmin):
    list_display = ('__str__', 'quality',)

admin.site.register(SightingsContributor, SightingsContributorAdmin)
#admin.site.register(SightingsMedia)

admin.site.register(SightingsNonSighting, SightingsNonSightingAdmin)
admin.site.register(SightingsSighting, SightingsSightingAdmin)
admin.site.register(SightingsBird)
<commit_msg>Added more fields to Sightings/NonSightings list in admin (#60)<commit_after>from django.contrib.gis import admin

from .models.contributors import SightingsContributor
#from .models.media import SightingsMedia
from .models.sightings import SightingsNonSighting, SightingsSighting
from .models.birds import SightingsBird

class SightingsContributorAdmin(admin.ModelAdmin):
    list_display = ('__str__', 'email', 'activity', 'heard', 'communications',)

class SightingsBirdInline(admin.TabularInline):
    model = SightingsBird
    extra = 0

class SightingsSightingAdmin(admin.OSMGeoAdmin):
    list_display = ('__str__', 'contributor', 'region', 'quality', 'date_created',)
    inlines = [SightingsBirdInline]

class SightingsNonSightingAdmin(admin.ModelAdmin):
    list_display = ('__str__', 'contributor', 'region', 'quality', 'date_created',)

admin.site.register(SightingsContributor, SightingsContributorAdmin)
#admin.site.register(SightingsMedia)

admin.site.register(SightingsNonSighting, SightingsNonSightingAdmin)
admin.site.register(SightingsSighting, SightingsSightingAdmin)
admin.site.register(SightingsBird)

{'fraction_non_alphanumeric': 0.10122989593188268, 'fraction_numerical': 0.001892147587511826, 'mean_word_length': 7.528225806451613, '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': '7521016', 'n_tokens_mistral': 706, 'n_tokens_neox': 670, 'n_words': 124}