Changes between Initial Version and Version 1 of Ticket #34117
- Timestamp:
- Oct 24, 2022, 4:14:00 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34117 – Description
initial v1 15 15 16 16 When 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 18 When 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)) 22 TypeError: User() got an unexpected keyword argument 'gender' 23 }}} 24 17 25 **Please, why? Am I wrong somewhere? ** 18 26