Changes between Initial Version and Version 1 of Ticket #34117


Ignore:
Timestamp:
Oct 24, 2022, 4:14:00 PM (2 years ago)
Author:
Ismael ABBO
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34117 – Description

    initial v1  
    1515
    1616When I add gender field in the migration files manually, executing {{{makemigrations}}} command again generate a delete of that field {{{gender}}} while I have not removed it in the associate model. **Do we assume here that it does not see the field at all from the beginning? **
     17
     18When forcefully staying with that field, trying to run a command to populate database produces :
     19{{{
     20  File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 503, in __init__
     21    raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg))
     22TypeError: User() got an unexpected keyword argument 'gender'
     23}}}
     24
    1725**Please, why? Am I wrong somewhere? **
    1826
Back to Top