2018-04-29 01:28:09 +02:00
|
|
|
# coding: utf-8
|
|
|
|
from django.core.management.base import BaseCommand
|
2018-04-22 15:31:41 +02:00
|
|
|
|
|
|
|
from allauth_ens.adapter import deprecate_clippers
|
|
|
|
|
2018-04-29 01:28:09 +02:00
|
|
|
|
2018-04-22 15:31:41 +02:00
|
|
|
class Command(BaseCommand):
|
|
|
|
help = 'Deprecates clipper SocialAccounts so as to avoid conflicts'
|
|
|
|
|
|
|
|
def add_arguments(self, parser):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
|
|
|
deprecate_clippers()
|
2018-04-29 01:28:09 +02:00
|
|
|
self.stdout.write(self.style.SUCCESS(
|
|
|
|
'Clippers deprecation successful'))
|