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.
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)
1
votes
I tried to unregister those models in the my_app/urls.py and it worked for me. For example:
my_app/urls.py:
admin.site.unregister(Nonce)
0
votes
For me below thing worked
from django.contrib import admin
from social_django.models import Association, Nonce, UserSocialAuth
admin.site.unregister(Association)
admin.site.unregister(Nonce)
admin.site.unregister(UserSocialAuth)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more