          user = request.user
          model_cls = queryset.model
          kwargs = {
              'app_label': model_cls._meta.app_label,
              'model_name': model_cls._meta.module_name
          }
          permission = self.perm_format % kwargs
          return guardian.shortcuts.get_objects_for_user(user, permission, queryset)
 
</s> remove             'model_name': model_cls._meta.module_name
 </s> add             'model_name': get_model_name(model_cls) </s> remove             'model_name': model_cls._meta.module_name
 </s> add             'model_name': get_model_name(model_cls) </s> remove         model_name = BasicPermModel._meta.module_name
 </s> add         model_name = get_model_name(BasicPermModel) </s> remove from rest_framework.compat import oauth2_provider_scope, oauth2_constants
 </s> add from rest_framework.compat import (get_model_name, oauth2_provider_scope,
                                   oauth2_constants)
            'model_name': get_model_name(model_cls)
          user = request.user
          model_cls = queryset.model
          kwargs = {
              'app_label': model_cls._meta.app_label,
            'model_name': get_model_name(model_cls)
          }
          permission = self.perm_format % kwargs
          return guardian.shortcuts.get_objects_for_user(user, permission, queryset)
keep keep keep keep replace keep keep keep
 Address pending deprecation of Model._meta.module_name in Django 1.6 
rest_framework/filters.py