<commit_before>from django.contrib import admin
from django.db import models

from LabtrackerCore import models as cmod

class GroupAdmin(admin.ModelAdmin):
   filter_horizontal = ('items',) 


admin.site.register(cmod.Group, GroupAdmin)<commit_msg>Fixed admin.py so that prepopulation of the slug field in Labtracker core works correctly<commit_after>from django.contrib import admin
from django.db import models

from LabtrackerCore import models as cmod

class GroupAdmin(admin.ModelAdmin):
   filter_horizontal = ('items',) 
class ItemAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("name",)}

admin.site.register(cmod.Item, ItemAdmin)
admin.site.register(cmod.Group, GroupAdmin)
{'fraction_non_alphanumeric': 0.09195402298850575, 'fraction_numerical': 0.0, 'mean_word_length': 6.112244897959184, 'pattern_counts': {'":': 1, '<': 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': '775700', 'n_tokens_mistral': 204, 'n_tokens_neox': 200, 'n_words': 59}