Changes between Initial Version and Version 2 of Ticket #28368


Ignore:
Timestamp:
Jul 6, 2017, 8:12:29 AM (7 years ago)
Author:
Lawrence Elitzer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28368

    • Property Component UncategorizedDatabase layer (models, ORM)
  • Ticket #28368 – Description

    initial v2  
    2727
    2828cf.name is 'ft4' here indicating to me that the second object creation is overwriting the parent record entry since the primary_key 'sha' field is the same for both object creations. If you get rid of the primary_key attribute in the 'sha' field and instead put 'unique=True' then this works as I think it should. Seems like a bug to me, or am I using inheritance incorrectly here?
     29
     30I am using Django v. 1.11.3 and Python 3.6.1 with MariaDB 5.5.52 on CentOS 7.
Back to Top