Skip to content

Commit

Permalink
[admin] Unregister allauth.socialaccount models
Browse files Browse the repository at this point in the history
Not implemented yet
  • Loading branch information
nemesifier committed Mar 10, 2017
1 parent dd2b7f9 commit d6a2294
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openwisp_users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,8 @@ def get_user(self, obj):
# unregister some admin components to keep the admin interface simple
# we can re-enable these models later when they will be really needed
for model in [('sites', 'Site'),
('account', 'EmailAddress')]:
('account', 'EmailAddress'),
('socialaccount', 'SocialApp'),
('socialaccount', 'SocialToken'),
('socialaccount', 'SocialAccount')]:
admin.site.unregister(apps.get_model(*model))

0 comments on commit d6a2294

Please sign in to comment.