Trying to fix deprecation warnings.

Those warnings were introduced in
https://github.com/django/django/commit/6983a1a540a6e6c3bd941fa15ddd8cb49f9ec74e
https://code.djangoproject.com/ticket/15363

Unfortunately, while testing with Python 3.3 and Django 1.6.3, I
couldn't make the tests fail. All 198 tests kept passing both before and
after this commit. I ran the tests usin `python3 setup.py test`.