Skip to content

Instantly share code, notes, and snippets.

View grudelsud's full-sized avatar
😜
specialisation is for insects

Thomas Alisi grudelsud

😜
specialisation is for insects
View GitHub Profile
@grudelsud
grudelsud / fields.py
Last active August 29, 2015 14:14 — forked from vdboor/fields.py
from django.core.exceptions import ImproperlyConfigured
from rest_framework import serializers
from rest_framework.serializers import SortedDictWithMetadata
from .utils import create_translated_fields_serializer
class TranslatedFieldsField(serializers.WritableField):
"""
Exposing translated fields for a TranslatableModel in REST style.
"""