Skip to content

Commit

Permalink
Merge 965c9b3 into e0ad5e7
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurek committed Jun 9, 2016
2 parents e0ad5e7 + 965c9b3 commit da88151
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/ralph/dhcp/api.py
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from ralph.api import RalphAPISerializer, RalphAPIViewSet, router
from ralph.dhcp.models import DNSServer


class DNSServerSerializer(RalphAPISerializer):
class Meta:
model = DNSServer
depth = 1


class DNSServerViewSet(RalphAPIViewSet):
queryset = DNSServer.objects.all()
serializer_class = DNSServerSerializer


router.register(r'dns-servers', DNSServerViewSet)
urlpatterns = []
1 change: 1 addition & 0 deletions src/ralph/urls/base.py
Expand Up @@ -14,6 +14,7 @@
'ralph.back_office.api',
'ralph.data_center.api.routers',
'ralph.dc_view.urls.api',
'ralph.dhcp.api',
'ralph.domains.api',
'ralph.supports.api',
'ralph.security.api',
Expand Down

0 comments on commit da88151

Please sign in to comment.