title: restframework 'tuple' object has no attribute '_meta'
body: <p>Django throws the next exception:</p>
  
  <p>restframework 'tuple' object has no attribute '_meta'</p>
  
  <p>Model</p>
  
  <pre><code>class BDetail(models.Model):
     lat = models.FloatField(blank=True, null=True)
     lng = models.FloatField(blank=True, null=True)
  
     class Meta:
         # managed = False
         db_table = 'b_detail'
  </code></pre>
  
  <p>View</p>
  
  <pre><code>from .models import BDetail
  from .serializers import BDetailSerializer
  from rest_framework import viewsets
  
  class BDetailList(viewsets.ModelViewSet):
          queryset = BDetail.objects.all()
          serializer_class = BDetailSerializer
  </code></pre>
  
  <p>urls</p>
  
  <pre><code>from django.conf.urls import url, include
  from bdetail import views
  from rest_framework import routers
  
  router = routers.DefaultRouter()
  router.register(r'bdetail', views.BDetailList)
  
  urlpatterns = [
      url(r'^', include(router.urls), name='bdetail')
  ]
  </code></pre>
  
  <p>serializers</p>
  
  <pre><code>from .models import BDetail
  from rest_framework import serializers
  
  class BDetailSerializer(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = BDetail,
          fields = ('lat', 'lng')
  </code></pre>
  
  <p>Environment:</p>
  
  <p>Request Method: GET
  Request URL: <a href="http://apiix.verinmuebles.dev/v1/bdetail/" rel="noreferrer">http://apiix.verinmuebles.dev/v1/bdetail/</a></p>
  
  <p>Traceback:</p>
  
  <blockquote>
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/django/core/handlers/exception.py"
    in inner
      39.             response = get_response(request)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/django/core/handlers/base.py"
    in _get_response
      187.                 response = self.process_exception_by_middleware(e, request)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/django/core/handlers/base.py"
    in _get_response
      185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/django/views/decorators/csrf.py"
    in wrapped_view
      58.         return view_func(*args, **kwargs)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/viewsets.py"
    in view
      87.             return self.dispatch(request, *args, **kwargs)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/views.py"
    in dispatch
      474.             response = self.handle_exception(exc)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/views.py"
    in handle_exception
      434.             self.raise_uncaught_exception(exc)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/views.py"
    in dispatch
      471.             response = handler(request, *args, **kwargs)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/mixins.py"
    in list
      45.             return self.get_paginated_response(serializer.data)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/serializers.py"
    in data
      701.         ret = super(ListSerializer, self).data</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/serializers.py"
    in data
      240.                 self._data = self.to_representation(self.instance)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/serializers.py"
    in to_representation
      619.             self.child.to_representation(item) for item in iterable</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/serializers.py"
    in to_representation
      460.         fields = self._readable_fields</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/django/utils/functional.py"
    in <strong>get</strong>
      35.         res = instance.<strong>dict</strong>[self.name] = self.func(instance)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/serializers.py"
    in _readable_fields
      354.             field for field in self.fields.values()</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/serializers.py"
    in fields
      340.             for key, value in self.get_fields().items():</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/serializers.py"
    in get_fields
      946.         info = model_meta.get_field_info(model)</p>
    
    <p>File
    "/var/www/verinmuebles/current/Env/api/local/lib/python2.7/site-packages/rest_framework/utils/model_meta.py"
    in get_field_info
      36.     opts = model._meta.concrete_model._meta</p>
    
    <p>Exception Type: AttributeError at /v1/bdetail/ Exception Value:
    'tuple' object has no attribute '_meta'</p>
  </blockquote>