changed tm/models.py