<commit_before>from django.contrib import admin
from djangopress.core.links.models import StaticLink
from django import forms

class StaticLinkForm(forms.ModelForm):
    class Meta:
        model = StaticLink
        widgets = {
            'location': forms.TextInput()
        }

class StaticLinkAdmin(admin.ModelAdmin):
    form = StaticLinkForm

admin.site.register(StaticLink, StaticLinkAdmin)<commit_msg>Updates to work with newer version of django<commit_after>from django.contrib import admin
from djangopress.core.links.models import StaticLink
from django import forms

class StaticLinkForm(forms.ModelForm):
    class Meta:
        model = StaticLink
        widgets = {
            'location': forms.TextInput()
        }

class StaticLinkAdmin(admin.ModelAdmin):
    form = StaticLinkForm
    list_display = ('label_text', 'location')

admin.site.register(StaticLink, StaticLinkAdmin)
{'fraction_non_alphanumeric': 0.0802675585284281, 'fraction_numerical': 0.0, 'mean_word_length': 3.7263157894736842, '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': '7534093', 'n_tokens_mistral': 257, 'n_tokens_neox': 241, 'n_words': 63}