#23533: Hook for default QuerySet filtering defined on the QuerySet itself.
-------------------------------------+-------------------------------------
Reporter: Loic Bistuer | Owner: Mariusz
| Felisiak
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):
Replying to [comment:5 Mariusz Felisiak]:
> Brilliant idea, thanks Simon. `QuerySet.filter()` already exist so I
think we should use a different name for a class method to avoid
confusion, maybe `QuerySet.init_filter()` or `QuerySet.initial_filter()`.
Ah ok we can use `class_or_instance_method()` hook.
--
Ticket URL: <https://code.djangoproject.com/ticket/23533#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019ac4ba7117-07ec577d-baad-452e-8b66-713916ba97cd-000000%40eu-central-1.amazonses.com.