8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Fix of copy/paste errors

This commit is contained in:
chapeau 2020-04-21 17:19:16 +02:00 committed by Gabriel Detraz
parent 77b0aff007
commit cf7e293a1c
3 changed files with 5 additions and 4 deletions

View file

@ -107,12 +107,12 @@ class SOASerializer(NamespacedHMSerializer):
class ExtensionSerializer(NamespacedHMSerializer): class ExtensionSerializer(NamespacedHMSerializer):
"""Serialize `machines.models.Extension` objects. """Serialize machines.models.Extension objects.
""" """
class Meta: class Meta:
model = machines.Domain model = machines.Extension
fields = ("interface_parent", "name", "extension", "cname", "api_url", "ttl") fields = ("name", "need_infra", "origin", "origin_v6", "soa", "api_url")
class MxSerializer(NamespacedHMSerializer): class MxSerializer(NamespacedHMSerializer):

View file

@ -31,7 +31,7 @@ urls_viewset = [
(r"users/serviceuser", views.ServiceUserViewSet, None), (r"users/serviceuser", views.ServiceUserViewSet, None),
(r"users/school", views.SchoolViewSet, None), (r"users/school", views.SchoolViewSet, None),
(r"users/listright", views.ListRightViewSet, None), (r"users/listright", views.ListRightViewSet, None),
(r"users/shell", views.ShellViewSet, None), (r"users/shell", views.ShellViewSet, "shell"),
(r"users/ban", views.BanViewSet, None), (r"users/ban", views.BanViewSet, None),
(r"users/whitelist", views.WhitelistViewSet, None), (r"users/whitelist", views.WhitelistViewSet, None),
(r"users/emailaddress", views.EMailAddressViewSet, None) (r"users/emailaddress", views.EMailAddressViewSet, None)

View file

@ -21,6 +21,7 @@
from rest_framework import viewsets, generics, views from rest_framework import viewsets, generics, views
from django.db.models import Q from django.db.models import Q
from django.contrib.auth.models import Group
from . import serializers from . import serializers
from api.pagination import PageSizedPagination from api.pagination import PageSizedPagination