Fix message

This commit is contained in:
Виктор Гладких 2019-11-06 11:50:42 +03:00
parent 390ff974d7
commit e04c621a3d
3 changed files with 3 additions and 4 deletions

View File

@ -54,4 +54,4 @@ class Command(BaseCommand):
objects.append(est_empl)
ee = EstablishmentEmployee.objects.bulk_create(objects)
self.stdout.write(self.style.WARNING(f'Created establishment employee objects.'))
self.stdout.write(self.style.WARNING(f'Created employee position objects.'))

View File

@ -6,7 +6,7 @@ from establishment.models import Employee
class Command(BaseCommand):
help = '''Add employee position from old db to new db.
help = '''Add award from old db to new db.
Run after command add_award_type!'''
def award_sql(self):
@ -30,7 +30,6 @@ class Command(BaseCommand):
type = AwardType.objects.filter(old_id=a.award_type).first()
state = Award.PUBLISHED if a.state == 'published' else Award.WAITING
if profile and type:
print('THIS IS GOOD!')
award = Award(award_type=type, vintage_year=a.vintage_year,
title={"en-GB": a.title}, state=state,
content_object=profile, old_id=a.id)

View File

@ -6,7 +6,7 @@ from location.models import Country
class Command(BaseCommand):
help = '''Add employee position from old db to new db.
help = '''Add award types from old db to new db.
Run after migrate country code!'''
def award_types_sql(self):