From 4a3c844b7fceb68af86025b5f09ac24f5dffed6a Mon Sep 17 00:00:00 2001 From: "S. Andrew Sheppard" Date: Thu, 28 May 2015 08:29:15 -0500 Subject: [PATCH] flake8 --- tests/test_model_serializer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_model_serializer.py b/tests/test_model_serializer.py index 8ff97b766..49ad8ac10 100644 --- a/tests/test_model_serializer.py +++ b/tests/test_model_serializer.py @@ -319,6 +319,7 @@ class RelationalModel(models.Model): class UniqueTogetherModel(models.Model): foreign_key = models.ForeignKey(ForeignKeyTargetModel, related_name='unique_foreign_key') one_to_one = models.OneToOneField(OneToOneTargetModel, related_name='unique_one_to_one') + class Meta: unique_together = ("foreign_key", "one_to_one")