mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -13,6 +13,7 @@ class Parent(models.Model):
|
||||
# Use a simple string for forward declarations.
|
||||
bestchild = models.ForeignKey("Child", null=True, related_name="favoured_by")
|
||||
|
||||
|
||||
class Child(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user