Contributer: Allen Jonathan David Mentors: Mariusz Felisiak, Simon Charette Organization: Django Software Foundation
This project aims to add support to register and unregister custom lookups on a model’s Field instances. As of now, the Lookup API can only register and unregister lookups on Field classes. So a custom lookup added or overridden to a field affects all models which have that field, thus limiting the customizability of model lookups. Support for custom lookups for a particular field is the main goal of this project.
The detailed proposal for this project can be found here: GSoC-Proposal
The project had already some work done by Simon Charette. I first worked on testing the existing implemetation. Later class_or_instance_method
, register_instance_lookup
, unregister_instance_lookup
and get_instance_lookup
were added. Then I fixed existing tests, worked on writing tests for the new feature (instance lookups) and added addition tests for already existing class lookups tests. Lastly I worked on the documentation explaining the new feature and version changed annotations.
The project pull request - Allowed registering lookups per field instances.
- Tested
class_or_instance_method
which return repective methods based on call type. - Added support for
register_instance_lookup
,unregister_instance_lookup
andget_instance_lookup
. - Added support for reverse relations.
- Fixed existing tests and wrote addition tests for the feature.
- Wrote the documentation explaining the new feature.
Since the project was almost done earlier than expected, I worked on a few addition tickets.
-
ticket_26511
Documented KeyTransform and KeyTextTransform -
ticket_33966
Add support for using KeyTextTransform from lookup
I am eager to contribute to your project and gain valuable experience through my active participation. I assure you of my commitment to dedicating time to the project. I am particularly interested in working on this Python project, as I am confident in my ability to address any Python-related challenges. You can reach me at adreejamahato@gmail.com. I look forward to your response and the opportunity to contribute to your project.