-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
#
from rest_framework import serializers
from api.fields import AbsoluteURLField, LegacyMixin, ThumbnailField
class Meta:
model = Tag
- fields = ['name', 'url', 'sort_key', 'description']
+ fields = [
+ 'name', 'url', 'sort_key',
+ 'description',
+ 'description_pl',
+ 'plural', 'genre_epoch_specific',
+ 'adjective_feminine_singular', 'adjective_nonmasculine_plural',
+ 'genitive', 'collective_noun',
+ ]
+ write_only_fields = [
+ 'description_pl',
+ 'plural', 'genre_epoch_specific',
+ 'adjective_feminine_singular', 'adjective_nonmasculine_plural',
+ 'genitive', 'collective_noun',
+ ]
class TranslatorSerializer(serializers.Serializer):