mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
4bb831f18d
Factorisation du machin
10 lines
236 B
Python
10 lines
236 B
Python
from rest_framework import serializers
|
|
from machines.models import Interface
|
|
|
|
class InterfaceSerializer( serializers.ModelSerializer):
|
|
class Meta:
|
|
model = Interface
|
|
fields = ('ipv4', 'mac_address', 'dns', 'type')
|
|
|
|
|
|
|