#21297: CurrentSiteManager returns objects of superclass for sub-models that do 
not
define any additional fields
-------------------------------+--------------------------------------
     Reporter:  dp@…           |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  closed
    Component:  contrib.sites  |                  Version:  1.5
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by timo):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 I don't think the use case (subclassing without any additional fields) is
 advisable without using
 [https://docs.djangoproject.com/en/dev/topics/db/models/#proxy-models
 proxy models] -- if there are no fields on `SubModel`, then there's no
 reason to join the `sub_model` table. Please reopen this doesn't work for
 you.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21297#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.edab65e29b3a5e234ec986c97466524c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to