from django.conf import settings
from django.db import models

from field_history.tracker import FieldHistoryTracker


class Pet(models.Model):
    name = models.CharField(max_length=255)


class Owner(models.Model):
    name = models.CharField(max_length=255)
    pet = models.ForeignKey(Pet, blank=True, null=True)

    field_history = FieldHistoryTracker(['pet'])


class Person(models.Model):
    name = models.CharField(max_length=255)
    created_by = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True)

    field_history = FieldHistoryTracker(['name'])

    @property
    def _field_history_user(self):
        return self.created_by


class Human(models.Model):
    age = models.IntegerField(blank=True, null=True)
    is_female = models.BooleanField()
    body_temp = models.DecimalField(max_digits=15, decimal_places=2, blank=True, null=True)
    birth_date = models.DateField(blank=True, null=True)

    field_history = FieldHistoryTracker(['age', 'is_female',
                                         'body_temp', 'birth_date'])

from django.conf import settings
from django.db import models

from field_history.tracker import FieldHistoryTracker


class Pet(models.Model):
    name = models.CharField(max_length=255)


class Owner(models.Model):
    name = models.CharField(max_length=255)
    pet = models.ForeignKey(Pet, blank=True, null=True)

    field_history = FieldHistoryTracker(['pet'])


class Person(models.Model):
    name = models.CharField(max_length=255)
    created_by = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True)

    field_history = FieldHistoryTracker(['name'])

    @property
    def _field_history_user(self):
        return self.created_by


class Human(models.Model):
    age = models.IntegerField(blank=True, null=True)
    is_female = models.BooleanField(default=True)
    body_temp = models.DecimalField(max_digits=15, decimal_places=2, blank=True, null=True)
    birth_date = models.DateField(blank=True, null=True)

    field_history = FieldHistoryTracker(['age', 'is_female',
                                         'body_temp', 'birth_date'])

Fix test models