Changes between Version 1 and Version 3 of Ticket #28438
- Timestamp:
- Jul 26, 2017, 12:00:29 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28438
- Property Keywords migration models mixin sql added
-
Ticket #28438 – Description
v1 v3 76 76 - this does not happen if the mixin class extends {{{models.Model}}} to begin with. 77 77 - if model extends a mixin that extends {{{object}}}, it ends up in model's {{{bases}}}, however if mixin extends {{{model.Model}}} it does not. 78 78 - when mixin's base class changes, schema migration does not reflect this change in model's {{{bases}}} 79 79 80 80 Tested with Django 1.11.3, Python 2.7 81 82 Proposed solution: 83 migration should not create database fields for model fields not explicitly listed in {{{fields}}}