blob: f1fdddb17dd6bcc1133bbc8f1878a8d8372fa1d1 [file] [log] [blame]
Rizwan Haider30b33792016-08-18 02:11:18 -04001# admin.py - MetroNetworkService Django Admin
2
3from core.admin import ReadOnlyAwareAdmin
4from django.contrib import admin
5from services.metronetwork.models import *
6
7
8class MetroServiceAdmin(ReadOnlyAwareAdmin):
9 model = MetroNetworkService
10 verbose_name = "MetroNetwork Service"
11 verbose_name_plural = "MetroNetwork Services"
12 list_display = ("name", "administrativeState")
13 list_display_links = ('name',)
14 fieldsets = [(None, {
15 'fields': ['name', 'administrativeState', 'description'],
16 'classes': ['suit-tab suit-tab-general']})]
17
18
19admin.site.register(MetroNetworkService, MetroServiceAdmin)