TemplateBlock: changed Meta.unique_together to  unique_together = ( ( 'template', 'name', 'active_from', 'active_till', ), )
TemplateBlock: changed Meta.unique_together to 
unique_together = ( ( 'template', 'name', 'active_from', 'active_till', ), )

3 necessary SQL queries:

alter table db_templates_templateblock add CONSTRAINT `target_ct_id_refs_id_f86da62f8fb5e38` FOREIGN KEY (`target_ct_id`)  REFERENCES `django_content_type` (`id`);

alter table db_templates_templateblock add CONSTRAINT `template_id_refs_id_7062a0159e598dd7` FOREIGN KEY (`template_id`) REFERENCES `db_templates_dbtemplate` (`id`);

alter table db_templates_templateblock add UNIQUE KEY `template_id` (`template_id`,`name`,`active_from`,`active_till`);



git-svn-id: 6ce22b13eace8fe533dbb322c2bb0986ea4cd3e6@1907 2d143e24-0a30-0410-89d7-a2e95868dc81

ella/ella,petrlosa/ella,whalerock/ella,WhiskeyMedia/ella,MichalMaM/ella,petrlosa/ella,whalerock/ella,whalerock/ella,WhiskeyMedia/ella,MichalMaM/ella