I think it should read "If you are putting those types of relations on
another subclass of the parent model"?
--
Ticket URL: <https://code.djangoproject.com/ticket/23282>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* version: 1.4 => master
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Even after reading it a few times, I still understand what the
documentation is trying to tell me.
It also seems to me that the example chosen is wrong since the following
models (taken straight from the documentation) validate fine on Django
1.6:
{{{#!python
class Place(models.Model):
name = models.CharField(max_length=50)
address = models.CharField(max_length=80)
class Restaurant(Place):
serves_hot_dogs = models.BooleanField()
serves_pizza = models.BooleanField()
class Supplier(Place):
# Notice the lack of a related_name
customers = models.ManyToManyField(Restaurant)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23282#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/23282#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/23282#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"700618706425ae15888b9e60bdc7a00dd0b32a2f"]:
{{{
#!CommitTicketReference repository=""
revision="700618706425ae15888b9e60bdc7a00dd0b32a2f"
Fixed #23282 -- Corrected inheritance and reverse relations example.
Thanks knowledgepoint-devs for the report and claudep for review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23282#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"d1e4fb996bd969c9a5d1dc4546b3fd46766ad25e"]:
{{{
#!CommitTicketReference repository=""
revision="d1e4fb996bd969c9a5d1dc4546b3fd46766ad25e"
[1.6.x] Fixed #23282 -- Corrected inheritance and reverse relations
example.
Thanks knowledgepoint-devs for the report and claudep for review.
Backport of 7006187064 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23282#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"20e3a004ac88b127a51bb332ca2653fe06a19a97"]:
{{{
#!CommitTicketReference repository=""
revision="20e3a004ac88b127a51bb332ca2653fe06a19a97"
[1.7.x] Fixed #23282 -- Corrected inheritance and reverse relations
example.
Thanks knowledgepoint-devs for the report and claudep for review.
Backport of 7006187064 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23282#comment:5>