mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Fixed #25331 -- Removed trailing blank lines in docstrings.
This commit is contained in:
parent
d4b10a7256
commit
5153a3bfdc
60 changed files with 5 additions and 123 deletions
|
@ -63,7 +63,6 @@ class DeleteCascadeTests(TestCase):
|
|||
"""
|
||||
Django cascades deletes through generic-related objects to their
|
||||
reverse relations.
|
||||
|
||||
"""
|
||||
person = Person.objects.create(name='Nelson Mandela')
|
||||
award = Award.objects.create(name='Nobel', content_object=person)
|
||||
|
@ -81,7 +80,6 @@ class DeleteCascadeTests(TestCase):
|
|||
some other model has an FK to that through model, deletion is cascaded
|
||||
from one of the participants in the M2M, to the through model, to its
|
||||
related model.
|
||||
|
||||
"""
|
||||
juan = Child.objects.create(name='Juan')
|
||||
paints = Toy.objects.create(name='Paints')
|
||||
|
@ -126,7 +124,6 @@ class DeleteCascadeTransactionTests(TransactionTestCase):
|
|||
def test_to_field(self):
|
||||
"""
|
||||
Cascade deletion works with ForeignKey.to_field set to non-PK.
|
||||
|
||||
"""
|
||||
apple = Food.objects.create(name="apple")
|
||||
Eaten.objects.create(food=apple, meal="lunch")
|
||||
|
@ -156,7 +153,6 @@ class ProxyDeleteTest(TestCase):
|
|||
Tests on_delete behavior for proxy models.
|
||||
|
||||
See #16128.
|
||||
|
||||
"""
|
||||
def create_image(self):
|
||||
"""Return an Image referenced by both a FooImage and a FooFile."""
|
||||
|
@ -177,7 +173,6 @@ class ProxyDeleteTest(TestCase):
|
|||
"""
|
||||
Deleting the *proxy* instance bubbles through to its non-proxy and
|
||||
*all* referring objects are deleted.
|
||||
|
||||
"""
|
||||
self.create_image()
|
||||
|
||||
|
@ -195,7 +190,6 @@ class ProxyDeleteTest(TestCase):
|
|||
"""
|
||||
Deleting a proxy-of-proxy instance should bubble through to its proxy
|
||||
and non-proxy parents, deleting *all* referring objects.
|
||||
|
||||
"""
|
||||
test_image = self.create_image()
|
||||
|
||||
|
@ -221,7 +215,6 @@ class ProxyDeleteTest(TestCase):
|
|||
"""
|
||||
Deleting an instance of a concrete model should also delete objects
|
||||
referencing its proxy subclass.
|
||||
|
||||
"""
|
||||
self.create_image()
|
||||
|
||||
|
@ -244,7 +237,6 @@ class ProxyDeleteTest(TestCase):
|
|||
IntegrityError on databases unable to defer integrity checks).
|
||||
|
||||
Refs #17918.
|
||||
|
||||
"""
|
||||
# Create an Image (proxy of File) and FooFileProxy (proxy of FooFile,
|
||||
# which has an FK to File)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue