<s> from django . contrib import admin <EOL> from services . requestrouter . models import * <EOL> from django import forms <EOL> from django . utils . safestring import mark_safe <EOL> from django . contrib . auth . admin import UserAdmin <EOL> from django . contrib . admin . widgets import FilteredSelectMultiple <EOL> from django . contrib . auth . forms import ReadOnlyPasswordHashField <EOL> from django . contrib . auth . signals import user_logged_in <EOL> from django . utils import timezone <EOL> from django . contrib . contenttypes import generic <EOL> from suit . widgets import LinkedSelect <EOL> from core . admin import ServiceAppAdmin , SliceInline , ServiceAttrAsTabInline , ReadOnlyAwareAdmin , ServicePrivilegeInline <EOL> class RequestRouterAdmin ( ReadOnlyAwareAdmin ) : <EOL> change_form_template = "<STR_LIT>" <EOL> change_list_template = "<STR_LIT>" <EOL> custom_app_breadcrumb_name = "<STR_LIT>" <EOL> @ property <EOL> def custom_app_breadcrumb_url ( self ) : <EOL> services = RequestRouterService . objects . all ( ) <EOL> if len ( services ) == <NUM_LIT:1> : <EOL> return "<STR_LIT>" % services [ <NUM_LIT:0> ] . id <EOL> else : <EOL> return "<STR_LIT>" <EOL> class RequestRouterServiceAdmin ( ServiceAppAdmin ) : <EOL> model = RequestRouterService <EOL> verbose_name = "<STR_LIT>" <EOL> verbose_name_plural = "<STR_LIT>" <EOL> list_display = ( "<STR_LIT:name>" , "<STR_LIT>" ) <EOL> fieldsets = [ ( None , { '<STR_LIT>' : [ '<STR_LIT:name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:description>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , '<STR_LIT>' : [ '<STR_LIT>' ] } ) ] <EOL> inlines = [ SliceInline , ServiceAttrAsTabInline , ServicePrivilegeInline ] <EOL> user_readonly_fields = [ "<STR_LIT:name>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:description>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> suit_form_tabs = ( ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ) <EOL> suit_form_includes = ( ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , ) <EOL> class ServiceMapAdmin ( RequestRouterAdmin ) : <EOL> model = ServiceMap <EOL> verbose_name = "<STR_LIT>" <EOL> verbose_name_plural = "<STR_LIT>" <EOL> list_display = ( "<STR_LIT:name>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> fieldsets = [ ( None , { '<STR_LIT>' : [ '<STR_LIT:name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , '<STR_LIT>' : [ '<STR_LIT>' ] } ) ] <EOL> user_readonly_fields = [ "<STR_LIT:name>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> suit_form_tabs = ( ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ) <EOL> admin . site . register ( RequestRouterService , RequestRouterServiceAdmin ) <EOL> admin . site . register ( ServiceMap , ServiceMapAdmin ) </s>
