Last active
February 2, 2016 11:58
-
-
Save mrWinston/6d20db08c519b0ad7c63 to your computer and use it in GitHub Desktop.
Django objects.filter() variable column #django #python #orm #database #variable #hacks
This file contains hidden or 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
| # This program is free software. It comes without any warranty, to | |
| # the extent permitted by applicable law. You can redistribute it | |
| # and/or modify it under the terms of the Do What The Fuck You Want | |
| # To Public License, Version 2, as published by Sam Hocevar. See | |
| # http://www.wtfpl.net/ for more details. | |
| Foobars.objects.filter(**{'bar__icontains': 'foo'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment