<commit_before>from django.contrib import admin

from helloworldservice.models import HelloWorldService, HelloWorldTenant
from django import forms
from core.models import User
from core.admin import SliceInline, ServiceAttrAsTabInline, ReadOnlyAwareAdmin, ServicePrivilegeInline

class HelloWorldServiceAdmin(ReadOnlyAwareAdmin):
    model = HelloWorldService
    verbose_name = "Hello World Service"
    verbose_name_plural = "Hello World Service"
    list_display = ("backend_status_icon", "name", "enabled")
    list_display_links = ('backend_status_icon', 'name', )
    fieldsets = [(None, {'fields': ['backend_status_text', 'name','enabled','versionNumber', 'description',"view_url","icon_url" ], 'classes':['suit-tab suit-tab-general']})]
    readonly_fields = ('backend_status_text', )
    inlines = [SliceInline, ServiceAttrAsTabInline, ServicePrivilegeInline]

    extracontext_registered_admins = True

    user_readonly_fields = ["name", "enabled", "versionNumber", "description"]

    suit_form_tabs =(('general', 'Hello World Service Details'),
        ('administration', 'Administration'),
        ('slices','Slices'),
        ('serviceattrs','Additional Attributes'),
        ('serviceprivileges','Privileges'),
    )

    suit_form_includes = (('helloworldserviceadmin.html', 'top', 'administration'),<commit_msg>Fix imports in admin.py<commit_after>from django.contrib import admin

from helloworldservice.models import HelloWorldService, HelloWorldTenant, HELLO_WORLD_KIND
from django import forms
from core.models import User
from core.admin import SliceInline, ServiceAttrAsTabInline, ReadOnlyAwareAdmin, ServicePrivilegeInline

class HelloWorldServiceAdmin(ReadOnlyAwareAdmin):
    model = HelloWorldService
    verbose_name = "Hello World Service"
    verbose_name_plural = "Hello World Service"
    list_display = ("backend_status_icon", "name", "enabled")
    list_display_links = ('backend_status_icon', 'name', )
    fieldsets = [(None, {'fields': ['backend_status_text', 'name','enabled','versionNumber', 'description',"view_url","icon_url" ], 'classes':['suit-tab suit-tab-general']})]
    readonly_fields = ('backend_status_text', )
    inlines = [SliceInline, ServiceAttrAsTabInline, ServicePrivilegeInline]

    extracontext_registered_admins = True

    user_readonly_fields = ["name", "enabled", "versionNumber", "description"]

    suit_form_tabs =(('general', 'Hello World Service Details'),
        ('administration', 'Administration'),
        ('slices','Slices'),
        ('serviceattrs','Additional Attributes'),
        ('serviceprivileges','Privileges'),
    )

    suit_form_includes = (('helloworldserviceadmin.html', 'top', 'administration'),
{'fraction_non_alphanumeric': 0.12583767684288905, 'fraction_numerical': 0.0, 'mean_word_length': 5.88974358974359, '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': '4203958', 'n_tokens_mistral': 771, 'n_tokens_neox': 757, 'n_words': 163}