Changes between Initial Version and Version 1 of Ticket #34820
- Timestamp:
- Sep 8, 2023, 12:55:13 AM (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34820 – Description
initial v1 1 … execute migrate to report an error1 Execute migrate to report an error 2 2 3 3 If the models.ForeignObject attribute is used, changing null or blank to generate a new migration record will result in an error message when executing the migrate again 4 4 5 ``` 6 File "/Users/donghao/test/test_migations/manage.py", line 22, in <module> 5 6 7 {{{ 8 File "/Users/donghao/test/test_migations/manage.py", line 22, in <module> 7 9 execute_from_command_line(sys.argv) 8 10 File "/Users/donghao/.virtualenvs/simpleui/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line … … 37 39 if name.startswith("`") and name.endswith("`"): 38 40 AttributeError: 'NoneType' object has no attribute 'startswith' 39 ``` 40 41 A pre judgment has been added here to avoid this issue 42 41 }}}