3

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

Aarohi Kulkarni
  • 427
  • 2
  • 5
  • 19

3 Answers3

4

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)
mapes911
  • 100
  • 1
  • 6
1

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)
abober
  • 56
  • 3
0

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)
Ishika Jain
  • 949
  • 2
  • 11
  • 23