<commit_before>from django.contrib import admin
from browser.models import Resource, Borower, RLibrary, ROnline, RService, SDemo, SBehaviour, SDisorder, SServices

#~ # Register your models here.
#~ admin.site.register(Resource)
#~ class RType(admin.TabularInline):
    #~ model = RLibrary
    #~ extra = 1
    #~ max_num = 1
    
class Demo(admin.TabularInline):
    model = SDemo
    max_num = 1

class Behaviour(admin.TabularInline):
    model = SBehaviour
    max_num = 1

class Disorder(admin.TabularInline):
    model = SDisorder
    max_num = 1
#~ 
class Service(admin.TabularInline):
    model = SServices
    max_num = 1

class BorowerClass(admin.TabularInline):
    model = Borower
    
    max_num = 1



class LibraryAdmin(admin.ModelAdmin):
    inlines = [BorowerClass ,Demo, Behaviour, Disorder]
    list_filter = ['phys_id']
    search_fields = ['title','catagory']<commit_msg>got rid of the group in the auth. section because it dosn't do anything<commit_after>from django.contrib import admin
from browser.models import Resource, Borower, RLibrary, ROnline, RService, SDemo, SBehaviour, SDisorder, SServices
from django.contrib.auth.models import Group

admin.site.unregister(Group)

    
class Demo(admin.TabularInline):
    model = SDemo
    max_num = 1

class Behaviour(admin.TabularInline):
    model = SBehaviour
    max_num = 1

class Disorder(admin.TabularInline):
    model = SDisorder
    max_num = 1
#~ 
class Service(admin.TabularInline):
    model = SServices
    max_num = 1

class BorowerClass(admin.TabularInline):
    model = Borower
    
    max_num = 1



class LibraryAdmin(admin.ModelAdmin):
    inlines = [BorowerClass ,Demo, Behaviour, Disorder]
    list_filter = ['phys_id']
    search_fields = ['title','catagory']
{'fraction_non_alphanumeric': 0.09686609686609686, 'fraction_numerical': 0.006837606837606838, 'mean_word_length': 3.8642659279778395, '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': '3066181', 'n_tokens_mistral': 598, 'n_tokens_neox': 573, 'n_words': 144}