from django.conf import settings

if "tastypie" in settings.INSTALLED_APPS:
	# Tastypie resources are importable from the api package level (backwards compatibility)
	from .tastypie import APNSDeviceResource, GCMDeviceResource, WNSDeviceResource, APNSDeviceAuthenticatedResource, \
		GCMDeviceAuthenticatedResource, WNSDeviceAuthenticatedResource

	__all__ = [
		"APNSDeviceResource",
		"GCMDeviceResource",
		"WNSDeviceResource",
		"APNSDeviceAuthenticatedResource",
		"GCMDeviceAuthenticatedResource",
		"WNSDeviceAuthenticatedResource",
	]

from django.conf import settings

if "tastypie" in settings.INSTALLED_APPS:
	# Tastypie resources are importable from the api package level (backwards compatibility)
	from .tastypie import APNSDeviceAuthenticatedResource, FCMDeviceResource

	__all__ = [
		"APNSDeviceAuthenticatedResource",
		"FCMDeviceResource",
	]

Remove references to old resources
Remove references to old resources

  from django.conf import settings
  
  if "tastypie" in settings.INSTALLED_APPS:
  	# Tastypie resources are importable from the api package level (backwards compatibility)
+ 	from .tastypie import APNSDeviceAuthenticatedResource, FCMDeviceResource
- 	from .tastypie import APNSDeviceResource, GCMDeviceResource, WNSDeviceResource, APNSDeviceAuthenticatedResource, \
- 		GCMDeviceAuthenticatedResource, WNSDeviceAuthenticatedResource
  
  	__all__ = [
- 		"APNSDeviceResource",
- 		"GCMDeviceResource",
- 		"WNSDeviceResource",
  		"APNSDeviceAuthenticatedResource",
+ 		"FCMDeviceResource",
- 		"GCMDeviceAuthenticatedResource",
- 		"WNSDeviceAuthenticatedResource",
  	]
  
Remove references to old resources
## Code Before:
from django.conf import settings

if "tastypie" in settings.INSTALLED_APPS:
	# Tastypie resources are importable from the api package level (backwards compatibility)
	from .tastypie import APNSDeviceResource, GCMDeviceResource, WNSDeviceResource, APNSDeviceAuthenticatedResource, \
		GCMDeviceAuthenticatedResource, WNSDeviceAuthenticatedResource

	__all__ = [
		"APNSDeviceResource",
		"GCMDeviceResource",
		"WNSDeviceResource",
		"APNSDeviceAuthenticatedResource",
		"GCMDeviceAuthenticatedResource",
		"WNSDeviceAuthenticatedResource",
	]

## Instruction:
Remove references to old resources
## Code After:
from django.conf import settings

if "tastypie" in settings.INSTALLED_APPS:
	# Tastypie resources are importable from the api package level (backwards compatibility)
	from .tastypie import APNSDeviceAuthenticatedResource, FCMDeviceResource

	__all__ = [
		"APNSDeviceAuthenticatedResource",
		"FCMDeviceResource",
	]
