Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Python Social Auth from django admin

I tried unregistering the models from 'social.apps.django_app.default' app. But django says they are not registered. I don't understand how to remove Association, Nonce and UserSocialAuth from my django admin site.

Thanks

like image 217
Aarohi Kulkarni Avatar asked Mar 31 '26 20:03

Aarohi Kulkarni


1 Answers

I was able to remove these by doing the following

from django.contrib import admin
from social.apps.django_app.default.models import Association, Nonce, UserSocialAuth

admin.site.unregister(Association)
admin.site.unregister(Nonce)
admin.site.unregister(UserSocialAuth)
like image 72
mapes911 Avatar answered Apr 03 '26 17:04

mapes911