[ADD] EMPLOYEE: Bonus point system and view inside employee profile view

This commit is contained in:
Horilla
2024-01-22 19:17:12 +05:30
parent a245901b14
commit f2037f5167
19 changed files with 501 additions and 33 deletions

View File

@@ -106,7 +106,10 @@ def get_diff(instance):
}
)
if create_history:
updated_by = create_history.history_user.employee_get
try:
updated_by = create_history.history_user.employee_get
except:
updated_by = Bot()
delta_changes.append(
{
"type": f"{create_history.instance.__class__._meta.verbose_name.capitalize()} created",