Fix test running in Django 1.6: model opts function caching.