Backport support of ForeignKey.db_constraint to django < 1.6