mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed many typos in comments and docstrings.
Thanks Piotr Kasprzyk for help with the patch.
This commit is contained in:
committed by
Tim Graham
parent
6acaa52386
commit
0d91225892
@@ -11,11 +11,11 @@ class Parent(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
# Use a simple string for forward declarations.
|
||||
bestchild = models.ForeignKey("Child", null=True, related_name="favoured_by")
|
||||
bestchild = models.ForeignKey("Child", null=True, related_name="favored_by")
|
||||
|
||||
|
||||
class Child(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
# You can also explicitally specify the related app.
|
||||
# You can also explicitly specify the related app.
|
||||
parent = models.ForeignKey("mutually_referential.Parent")
|
||||
|
||||
Reference in New Issue
Block a user