Fix employee name
This commit is contained in:
parent
e702be2691
commit
ced49965f9
|
|
@ -32,5 +32,6 @@ class Command(BaseCommand):
|
||||||
empl = Employee.objects.filter(old_id=e.profile_id)
|
empl = Employee.objects.filter(old_id=e.profile_id)
|
||||||
if empl.exists():
|
if empl.exists():
|
||||||
empl.name = e.name
|
empl.name = e.name
|
||||||
|
empl.save()
|
||||||
|
|
||||||
self.stdout.write(self.style.WARNING(f'Update employee name objects.'))
|
self.stdout.write(self.style.WARNING(f'Update employee name objects.'))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user