feat(core): add TicketCategory to history/notes migration
ref: #807 closes #797
This commit is contained in:
@ -59,6 +59,12 @@ def centurion_model_migrate(sender, **kwargs):
|
|||||||
'history_model_name': 'ManufacturerHistory',
|
'history_model_name': 'ManufacturerHistory',
|
||||||
'notes_model_name': 'ManufacturerNotes'
|
'notes_model_name': 'ManufacturerNotes'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'app_label': 'core',
|
||||||
|
'model_name': 'TicketCategory',
|
||||||
|
'history_model_name': 'TicketCategoryHistory',
|
||||||
|
'notes_model_name': 'TicketCategoryNotes'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'app_label': 'devops',
|
'app_label': 'devops',
|
||||||
'model_name': 'FeatureFlag',
|
'model_name': 'FeatureFlag',
|
||||||
@ -146,7 +152,7 @@ def centurion_model_migrate(sender, **kwargs):
|
|||||||
print(f' Removed {history_model_name}={id} from database.')
|
print(f' Removed {history_model_name}={id} from database.')
|
||||||
|
|
||||||
except Exception as e:
|
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:
|
except LookupError as e:
|
||||||
|
Reference in New Issue
Block a user