  
  
  # First implementation of Django class-based views did not include head method
  # in base View class - https://code.djangoproject.com/ticket/15668
  if django.VERSION >= (1, 4):
      from django.views.generic import View
  else:
      from django.views.generic import View as _View
 
</s> remove         opts = cls._meta.concrete_model._meta
 </s> add         opts = get_concrete_model(cls)._meta </s> remove deps = django>=1.3.2
 </s> add deps = django==1.3.3 </s> remove deps = django>=1.4.1
 </s> add deps = django==1.4.1 </s> remove deps = django>=1.3.2
 </s> add deps = django==1.3.3
def get_concrete_model(model_cls):
    try:
        return model_cls._meta.concrete_model
    except AttributeError:
        # 1.3 does not include concrete model
        return model_cls


  
  
def get_concrete_model(model_cls):
    try:
        return model_cls._meta.concrete_model
    except AttributeError:
        # 1.3 does not include concrete model
        return model_cls


  # First implementation of Django class-based views did not include head method
  # in base View class - https://code.djangoproject.com/ticket/15668
  if django.VERSION >= (1, 4):
      from django.views.generic import View
  else:
      from django.views.generic import View as _View
keep add keep keep keep keep keep keep
 Fix serialization issue with Django 1.3 
rest_framework/compat.py