Renamed variables to avoid name collision with import of django.db.models.