# Path: dplace_app/models.py
# class Society(models.Model):
#     class Meta(object):
# class SocietyRelation(models.Model):
# class Category(models.Model):
#     class Meta(object):
# class Variable(models.Model):
#     class Meta(object):
# class CodeDescription(models.Model):
#     class Meta(object):
# class Value(models.Model):
#     class Meta(object):
# class Source(models.Model):
#     class Meta(object):
# class LanguageFamily(models.Model):
#     class Meta(object):
# class Language(models.Model):
#     class Meta(object):
# class GeographicRegion(models.Model):
#     class Meta(object):
# class LanguageTree(models.Model):
#     class Meta(object):
# class LanguageTreeLabels(models.Model):
#     class Meta:
# class LanguageTreeLabelsSequence(models.Model):
#     class Meta:
#     def related(self):
#     def location(self):
#     def original_location(self):
#     def get_environmental_data(self):
#     def get_cultural_trait_data(self):
#     def get_data_references(self):
#     def __unicode__(self):
#     def get_absolute_url(self):
#     def __unicode__(self):
#     def coded_societies(self):
#     def __unicode__(self):
#     def save(self, *args, **kwargs):
#     def read_code_number(self):
#     def coded_societies(self):
#     def __unicode__(self):
#     def get_description(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def get_absolute_url(self):
#     def __unicode__(self):


from rest_framework import serializers
from dplace_app import models
        fields = ('id', 'code', 'description', 'short_description', 'variable')


class VariableSerializer(serializers.ModelSerializer):
    class Meta(object):
        model = models.Variable
        fields = (
            'id',
            'type',
            'label',
            'name',
            'codebook_info',
            'data_type',
            'source',
            'index_categories',
            'units'
        )


class CategorySerializer(serializers.ModelSerializer):
    class Meta(object):
        model = models.Category
        fields = ('id', 'name', 'type')


class VariableDetailSerializer(serializers.ModelSerializer):
    index_categories = CategorySerializer(many=True)
    niche_categories = CategorySerializer(many=True)

    class Meta(object):

# Path: dplace_app/models.py
# class Society(models.Model):
#     class Meta(object):
# class SocietyRelation(models.Model):
# class Category(models.Model):
#     class Meta(object):
# class Variable(models.Model):
#     class Meta(object):
# class CodeDescription(models.Model):
#     class Meta(object):
# class Value(models.Model):
#     class Meta(object):
# class Source(models.Model):
#     class Meta(object):
# class LanguageFamily(models.Model):
#     class Meta(object):
# class Language(models.Model):
#     class Meta(object):
# class GeographicRegion(models.Model):
#     class Meta(object):
# class LanguageTree(models.Model):
#     class Meta(object):
# class LanguageTreeLabels(models.Model):
#     class Meta:
# class LanguageTreeLabelsSequence(models.Model):
#     class Meta:
#     def related(self):
#     def location(self):
#     def original_location(self):
#     def get_environmental_data(self):
#     def get_cultural_trait_data(self):
#     def get_data_references(self):
#     def __unicode__(self):
#     def get_absolute_url(self):
#     def __unicode__(self):
#     def coded_societies(self):
#     def __unicode__(self):
#     def save(self, *args, **kwargs):
#     def read_code_number(self):
#     def coded_societies(self):
#     def __unicode__(self):
#     def get_description(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def get_absolute_url(self):
#     def __unicode__(self):


# Path: dplace_app/serializers.py
from rest_framework import serializers
from dplace_app import models

        fields = ('id', 'code', 'description', 'short_description', 'variable')


class VariableSerializer(serializers.ModelSerializer):
    class Meta(object):
        model = models.Variable
        fields = (
            'id',
            'type',
            'label',
            'name',
            'codebook_info',
            'data_type',
            'source',
            'index_categories',
            'units'
        )


class CategorySerializer(serializers.ModelSerializer):
    class Meta(object):
        model = models.Category
        fields = ('id', 'name', 'type')


class VariableDetailSerializer(serializers.ModelSerializer):
    index_categories = CategorySerializer(many=True)
    niche_categories = CategorySerializer(many=True)

    class Meta(object):

        model = models.Variable