SELECT * FROM table WHERE height > width;
or similar UPDATE queries. This has a syntax similar to that of Q objects, using a new F object. So the above query would look like:
or an update query could look like:
these objects support the full range of arithmetic operations. These are slated to be a part of Django 1.1.