Some django query examples and tricks