removed deprecation warnings with django 1.6.