#27736 closed Cleanup/optimization (fixed)
Prefer decorators for lookup-registration
Reported by: | Mads Jensen | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django/db/models/lookups.py
can be made a bit more compact by using decorators for registrering the lookups. The file has an inconsistent style for it.
Attachments (1)
Change History (5)
by , 8 years ago
Attachment: | django-db-models-lookups.patch added |
---|
comment:1 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Note:
See TracTickets
for help on using tickets.
Yep a cleanup here looks good. Can you turn your patch into a PR please?