old_contents: # -*- coding: utf-8 -*-
  #
  # (c) 2014 Bjoern Ricks <bjoern.ricks@gmail.com>
  #
  # See LICENSE comming with the source of 'trex' for details.
  #
  
  from rest_framework.serializers import HyperlinkedModelSerializer
  
  from trex.models.project import Project
  
  
  class ProjectSerializer(HyperlinkedModelSerializer):
  
      class Meta:
          model = Project
          fields = ("url", "name", "description", "active", "created")
  
new_contents: # -*- coding: utf-8 -*-
  #
  # (c) 2014 Bjoern Ricks <bjoern.ricks@gmail.com>
  #
  # See LICENSE comming with the source of 'trex' for details.
  #
  
  from rest_framework.serializers import HyperlinkedModelSerializer
  
  from trex.models.project import Project, Entry
  
  
  class ProjectSerializer(HyperlinkedModelSerializer):
  
      class Meta:
          model = Project
          fields = ("url", "name", "description", "active", "created")
  
  
  class ProjectDetailSerializer(HyperlinkedModelSerializer):
  
      class Meta:
          model = Project
          fields = ("name", "description", "active", "created", "entries")
  
  
  class EntryDetailSerializer(HyperlinkedModelSerializer):
  
      class Meta:
          model = Entry
          fields = ("date", "duration", "description", "state", "user", "created")
  
subject: Add a ProjectDetailSerializer and EntryDetailSerializer