We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d919e8f commit 6b2b675Copy full SHA for 6b2b675
1 file changed
osf/management/commands/remove_orcid_from_user_social.py
@@ -1,6 +1,13 @@
1
+from django.core.management.base import BaseCommand
2
from django.db.models.expressions import RawSQL
3
from osf.models import OSFUser
4
5
6
def remove_orcid_from_user_social():
7
OSFUser.objects.filter(social__has_key='orcid').update(social=RawSQL("""social #- '{orcid}'""", []))
8
+
9
10
+class Command(BaseCommand):
11
+ def handle(self, *args, **kwargs):
12
+ breakpoint()
13
+ remove_orcid_from_user_social()
0 commit comments