Fix #118 Avoid deprecation warning in Django 1.5