models: avoid DeprecationWarning in Django 1.6.