Changes between Initial Version and Version 2 of Ticket #28368
- Timestamp:
- Jul 6, 2017, 8:12:29 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28368
- Property Component Uncategorized → Database layer (models, ORM)
-
Ticket #28368 – Description
initial v2 27 27 28 28 cf.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 30 I am using Django v. 1.11.3 and Python 3.6.1 with MariaDB 5.5.52 on CentOS 7.