Changes between Version 1 and Version 3 of Ticket #28438


Ignore:
Timestamp:
Jul 26, 2017, 12:00:29 PM (7 years ago)
Author:
Michal Dabski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28438

    • Property Keywords migration models mixin sql added
  • Ticket #28438 – Description

    v1 v3  
    7676- this does not happen if the mixin class extends {{{models.Model}}} to begin with.
    7777- 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}}}
    7979
    8080Tested with Django 1.11.3, Python 2.7
     81
     82Proposed solution:
     83migration should not create database fields for model fields not explicitly listed in {{{fields}}}
Back to Top