mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 11:13:23 +00:00
12 lines
260 B
Python
12 lines
260 B
Python
from rest_framework import serializers
|
|
from counter.models import Counter
|
|
|
|
|
|
class Counter(serializers.ModelSerializer):
|
|
|
|
is_open = serializers.BooleanField(read_only=True)
|
|
|
|
class Meta:
|
|
model = Counter
|
|
fields = ('id', 'name', 'is_open')
|