updated Django query in command