#16176: Overwriting a property with field during model inheritance.
-------------------------------------+-------------------------------------
     Reporter:  czepiel.artur@…      |                    Owner:
         Type:  Bug                  |  Thomas_Moronez
    Component:  Database layer       |                   Status:  assigned
  (models, ORM)                      |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Thomas_Moronez):

 I modified the add_to_class method to check if the value of the attribute
 is a property. If it is it sets the attribute to the class with a None
 value. I took melinath's suggestion too set the field's name to None.This
 does fix the bug, and does not break test in model_inheritance_regress.
 However, as developer carljm, pointed out, backwards-incompatibility may
 be present as the patch adds 4 unit test failures.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16176#comment:7>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to