File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ """Administrative capabilities for netbox_onboarding plugin.
2+
3+ (c) 2020 Network To Code
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+ http://www.apache.org/licenses/LICENSE-2.0
8+ Unless required by applicable law or agreed to in writing, software
9+ distributed under the License is distributed on an "AS IS" BASIS,
10+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+ See the License for the specific language governing permissions and
12+ limitations under the License.
13+ """
14+ from django .contrib import admin
15+ from .models import OnboardingTask
16+
17+
18+ @admin .register (OnboardingTask )
19+ class OnboardingTaskAdmin (admin .ModelAdmin ):
20+ """Administrative view for managing OnboardingTask instances."""
21+
22+ list_display = (
23+ "pk" ,
24+ "group_id" ,
25+ "owner" ,
26+ "created_device" ,
27+ "ip_address" ,
28+ "site" ,
29+ "role" ,
30+ "device_type" ,
31+ "platform" ,
32+ "status" ,
33+ "message" ,
34+ "failed_reason" ,
35+ "port" ,
36+ "timeout" ,
37+ "created_on" ,
38+ )
You can’t perform that action at this time.
0 commit comments