title: Django rest framewrok how to query relationalship
body: <pre><code>models.py
  
  class Employee(models.Model):
      Name = models.CharField(max_length=50 )
      Email = models.CharField(max_length=30)
  
      def __str__(self):
          return self.Name              # __unicode__ on Python 2
  
  
  
  class EmployeeProfile(models.Model):
      employee = models.ForeignKey(Employee, related_name='fromemployee')
      Address = models.CharField(max_length=50, null=True, blank=True)
      job_title = models.CharField(max_length=50, null=True, blank=True)
      employeesomething= models.ForeignKey(Employee, related_name='refirence')
  
      def __str__(self):              # __unicode__ on Python 2
         return self.Address
  
  
  
  serializers.py
  
  class EmployeeSerializer(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = Employee
          fields = ('id', 'Name')
  
  
  class EmployeeProfileSerializer(serializers.HyperlinkedModelSerializer):
      # usergroups = serializers.StringRelatedField(many=True)
      employee_set = EmployeeSerializer(many=True, read_only=True)
      class Meta:
          model = EmployeeProfile
          fields = ('id', 'Address','employee','job_title','employeesomething','employee_set')
  
  
  views.py
  
  class EmployeeViewSet(viewsets.ModelViewSet):
      """
      API endpoint that allows groups to be viewed or edited.
      """
      queryset = Employee.objects.all()
      serializer_class = EmployeeSerializer    
  
  class EmployeeProfileViewSet(viewsets.ModelViewSet):
      """
      API endpoint that allows groups to be viewed or edited.
      """
      queryset = EmployeeProfile.objects.all()
      serializer_class = EmployeeProfileSerializer        
  
  
  urls.py
  
  router = routers.DefaultRouter()
  
  
  router.register(r'employee', views.EmployeeViewSet)
  router.register(r'employeeprofile', views.EmployeeProfileViewSet)
  
  
  urlpatterns = [
      url(r'^admin/', include(admin.site.urls)),
      url(r'^', include(router.urls)),
      url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
  ]
  
  
  my out put   http://localhost:8000/employeeprofile/
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>[
      {
          "id": 1,
          "Address": "Hyderabd",
          "employee": "localhost:8000/employee/1/",
          "job_title": "admin",
          "employeesomething": "http://localhost:8000/employee/2/"
      },
      {
          "id": 2,
          "Address": "Hyderabd",
          "employee": "http://localhost:8000/employee/1/",
          "job_title": "admin",
          "employeesomething": "http://localhost:8000/employee/3/"
      },
      {
          "id": 3,
          "Address": "Hyderabd",
          "employee": "http://localhost:8000/employee/4/",
          "job_title": "admin",
          "employeesomething": "http://localhost:8000/employee/5/"
      },
      {
          "id": 4,
          "Address": "Hyderabd",
          "employee": "http://localhost:8000/employee/4/",
          "job_title": "admin",
          "employeesomething": "http://localhost:8000/employee/6/"
      }
  ]</code></pre>
  </div>
  </div>
  </p>
  
  <p>*
      There is relation between Employee and EmployeeProfile if i pass Employe Id i need get Employee Profile how to query Please help me.And is it passbul to use viewsets.ModelViewSet to get query Thanks 
      *</p>