Skip to content

Instantly share code, notes, and snippets.

@vinigracindo
Created March 14, 2012 23:00
Show Gist options
  • Save vinigracindo/2040242 to your computer and use it in GitHub Desktop.
Save vinigracindo/2040242 to your computer and use it in GitHub Desktop.
# Levando em consideração que exista um Usuário com ID 3 e que possua facebook
user = User.objects.get(id=3)
user.social_auth.get_query_set().filter(provider = 'twitter')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment