Changes between Initial Version and Version 1 of Ticket #34820


Ignore:
Timestamp:
Sep 8, 2023, 12:55:13 AM (9 months ago)
Author:
puc_dong
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34820 – Description

    initial v1  
    1 … execute migrate to report an error
     1Execute migrate to report an error
    22
    33If 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
    44
    5 ```
    6   File "/Users/donghao/test/test_migations/manage.py", line 22, in <module>
     5
     6
     7{{{
     8File "/Users/donghao/test/test_migations/manage.py", line 22, in <module>
    79    execute_from_command_line(sys.argv)
    810  File "/Users/donghao/.virtualenvs/simpleui/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
     
    3739    if name.startswith("`") and name.endswith("`"):
    3840AttributeError: 'NoneType' object has no attribute 'startswith'
    39 ```
    40 
    41 A pre judgment has been added here to avoid this issue
    42 
     41}}}
Back to Top