9 lines
195 B
Python
9 lines
195 B
Python
|
from games.models import Console
|
||
|
from rest_framework import serializers
|
||
|
|
||
|
|
||
|
class ConsoleSerializer(serializers.ModelSerializer):
|
||
|
class Meta:
|
||
|
model = Console
|
||
|
fields = ('name',)
|