There are theses models and relations :
Hours --FK--> Task --FK--> Project <--FK-- Period class Hour(models.Model): date = models.DateField(...)