#24863: Make `django.db.models.Manager.from_queryset` copy over properties and 
not
just methods
----------------------------------------------+--------------------
     Reporter:  coolRR                        |      Owner:  nobody
         Type:  New feature                   |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  master
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 When I define a `QuerySet` subclass, I like defining not only methods but
 properties on it.

 The function `django.db.models.Manager.from_queryset` was introduced so we
 could succinctly create a `Manager` subclass that gets the same
 functionality that we defined on our `QuerySet` subclass. It copies over
 all the methods defind in the `QuerySet` class to the `Manager` class. But
 it doesn't copy properties, so they remain inaccessible from the `Manager`
 class.

 I want `django.db.models.Manager.from_queryset` to copy over the
 properties as well.

--
Ticket URL: <https://code.djangoproject.com/ticket/24863>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.6aa0abb9559f00aae2906f3cbc9b9b32%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to