Split django.db.models.fields.related into multiple modules.
|Reported by:||loic84||Owned by:||Aymeric Augustin|
|Component:||Database layer (models, ORM)||Version:||master|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
django.db.models.fields.related module is very large and pretty hard to work with.
It contains a lot of similar concepts with only slight differences, and one thing can easily be mistaken for its exact opposite, which makes navigating the file very error-prone. This is made worse by the fact that some class name are borderline wrong, (e.g.
ReverseSingleRelatedObjectDescriptor which actually is the forward FK descriptor).
Quoting akaariai: "fields/related.py is a brain melting machine".
This ticket proposes that we turn
related.py into a package with the following modules:
Change History (14)
comment:9 Changed 2 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Ready for checkin → Accepted|
comment:10 Changed 17 months ago by
|Owner:||changed from nobody to Aymeric Augustin|
|Status:||new → assigned|
comment:13 Changed 17 months ago by
|Patch needs improvement:||unset|
|Triage Stage:||Accepted → Ready for checkin|