#24863: Make `django.db.models.Manager.from_queryset` copy over properties and 
not
just methods
-------------------------------------+-------------------------------------
     Reporter:  coolRR               |                    Owner:  m_sha
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (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 carljm):

 I assume the OP is referring to dynamic properties (e.g. using `@property`
 or `@cached_property` - so basically methods but called implicitly), as
 that's the only use case for this I can imagine. Copying over static
 attributes doesn't make much sense to me.

 I'm not strongly opposed to this, but if the implementation turns out to
 be complex or difficult, I'd be perfectly happy to close it wontfix and
 say "just use methods instead."

--
Ticket URL: <https://code.djangoproject.com/ticket/24863#comment:4>
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/064.cb89ca1eb7c9e55c92fdb925bbe330d4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to