This commit is contained in:
Виктор Гладких 2019-11-05 17:32:18 +03:00
parent 6f4cd56fcd
commit 545e9a249b
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@ from establishment.models import Establishment, Position, Employee, Establishmen
class Command(BaseCommand):
help = 'Add employee position from old db to new db'
help = '''Add employee position from old db to new db.
Run after add_position and add_employee!'''
def empl_position_sql(self):
with connections['legacy'].cursor() as cursor:

View File

@ -6,7 +6,7 @@ from django.db.models import Q
class Command(BaseCommand):
help = 'Add employee from old db to new db'
help = 'Add employee from old db to new db.'
def employees_sql(self):
with connections['legacy'].cursor() as cursor: