feat(core): add TicketCategory to history/notes migration

ref: #807 closes #797
This commit is contained in:
2025-06-09 09:47:00 +09:30
parent abdcea07a6
commit 5817ff723b

View File

@ -59,6 +59,12 @@ def centurion_model_migrate(sender, **kwargs):
'history_model_name': 'ManufacturerHistory',
'notes_model_name': 'ManufacturerNotes'
},
{
'app_label': 'core',
'model_name': 'TicketCategory',
'history_model_name': 'TicketCategoryHistory',
'notes_model_name': 'TicketCategoryNotes'
},
{
'app_label': 'devops',
'model_name': 'FeatureFlag',
@ -146,7 +152,7 @@ def centurion_model_migrate(sender, **kwargs):
print(f' Removed {history_model_name}={id} from database.')
except Exception as e:
print(f"Exception {e.__class__.__name__} occured:"+"\n "+f'{e}')
print(f" Exception {e.__class__.__name__} occured:"+"\n "+f'{e}')
except LookupError as e: