mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
flake8
This commit is contained in:
parent
0b8b288be5
commit
4a3c844b7f
|
@ -319,6 +319,7 @@ class RelationalModel(models.Model):
|
||||||
class UniqueTogetherModel(models.Model):
|
class UniqueTogetherModel(models.Model):
|
||||||
foreign_key = models.ForeignKey(ForeignKeyTargetModel, related_name='unique_foreign_key')
|
foreign_key = models.ForeignKey(ForeignKeyTargetModel, related_name='unique_foreign_key')
|
||||||
one_to_one = models.OneToOneField(OneToOneTargetModel, related_name='unique_one_to_one')
|
one_to_one = models.OneToOneField(OneToOneTargetModel, related_name='unique_one_to_one')
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
unique_together = ("foreign_key", "one_to_one")
|
unique_together = ("foreign_key", "one_to_one")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user