mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
@@ -40,8 +40,12 @@ class ForeignKeyTests(TestCase):
|
||||
model = FKUniqueTrue()
|
||||
expected_warnings = [
|
||||
checks.Warning(
|
||||
"Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.",
|
||||
hint="ForeignKey(unique=True) is usually better served by a OneToOneField.",
|
||||
"Setting unique=True on a ForeignKey has the same effect as using a "
|
||||
"OneToOneField.",
|
||||
hint=(
|
||||
"ForeignKey(unique=True) is usually better served by a "
|
||||
"OneToOneField."
|
||||
),
|
||||
obj=FKUniqueTrue.fk_field.field,
|
||||
id="fields.W342",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user