Created
May 25, 2019 22:03
-
-
Save fcasco/d4e4d4aaea1e7addbc4dd9b0b82dfc33 to your computer and use it in GitHub Desktop.
Extra SQL en Django. 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Person.objects.extra(select={'email_provider': "(COALESCE(substring(email from '@(.*)$'), ''))"}).order_by('email_provider') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment