I\'m trying to use django\'s queryset API to emulate the following query:
SELECT EXTRACT(year FROM chosen_date) AS year, EXTRACT(month FROM chosen_date) AS
Just use the raw sql. The raw() manager method can be used to perform raw SQL queries that return model instances.
https://docs.djangoproject.com/en/1.5/topics/db/sql/#performing-raw-sql-queries