mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
DataSource password should be write-only
This commit is contained in:
parent
f23f8d5ba4
commit
77cc6e133f
@ -34,6 +34,7 @@ class DataSourceSerializer(NetBoxModelSerializer):
|
||||
'id', 'url', 'display', 'name', 'type', 'url', 'enabled', 'status', 'description', 'git_branch',
|
||||
'ignore_rules', 'username', 'password', 'created', 'last_updated', 'file_count',
|
||||
]
|
||||
extra_kwargs = {'password': {'write_only': True}}
|
||||
|
||||
|
||||
class DataFileSerializer(NetBoxModelSerializer):
|
||||
|
@ -1,4 +1,3 @@
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.shortcuts import get_object_or_404
|
||||
|
||||
from rest_framework.decorators import action
|
||||
@ -8,7 +7,6 @@ from rest_framework.routers import APIRootView
|
||||
|
||||
from core import filtersets
|
||||
from core.models import *
|
||||
from extras.models import JobResult
|
||||
from netbox.api.viewsets import NetBoxModelViewSet
|
||||
from utilities.utils import count_related
|
||||
from . import serializers
|
||||
|
Loading…
Reference in New Issue
Block a user