0
Eae guys, I’m having a problem, I’m making a script that randomly selects database users:
select = User.objects.filter(status=0, premium=0).exclude(twitter_id=select_me.twitter_id).order_by('?').first()
select_me
, would be the select of the user who is with the open session, so I don’t need you to select this user on random
.
Only gender it stores 1 or 2, integer values, sometimes returns me gender == null
, would like to delete the select of those users who have not chosen the genre yet, I have tried:
exclude(twitter_id=select_me.twitter_id, gender=None)
That didn’t work, how can I do that?
It worked buddy, gratitude
– user148010