  # flake8: noqa
  from __future__ import unicode_literals
  
  import django
  from django.core.exceptions import ImproperlyConfigured
  from django.conf import settings
  
  # Try to import six from Django, fallback to included `six`.
  try:
 
</s> remove from rest_framework.compat import oauth2_provider, provider_now
 </s> add from rest_framework.compat import oauth2_provider, provider_now, check_nonce </s> remove         from oauth_provider.models import Consumer, Resource
 </s> add         from oauth_provider.models import Consumer, Scope </s> remove         read_write_access_token.resource.is_readonly = False
        read_write_access_token.resource.save()
 </s> add         read_write_access_token.scope.is_readonly = False
        read_write_access_token.scope.save()
import inspect
  # flake8: noqa
  from __future__ import unicode_literals
  
  import django
import inspect
  from django.core.exceptions import ImproperlyConfigured
  from django.conf import settings
  
  # Try to import six from Django, fallback to included `six`.
  try:
keep keep keep add keep keep keep keep keep
 Compat fixes for django-oauth-plus versions 2.0-2.2.1 
rest_framework/compat.py