Skip to content

Commit 43a1c27

Browse files
committed
Add admin view (#26)
1 parent d83ed1f commit 43a1c27

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

netbox_onboarding/admin.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
)

0 commit comments

Comments
 (0)