Added the user creation to the accounting_sample command in the accounting application.

This commit is contained in:
依瑪貓 2020-07-22 07:46:00 +08:00
parent aba808a53a
commit cef592ac99

View File

@ -45,7 +45,12 @@ class Command(BaseCommand):
*args (list[str]): The command line arguments.
**options (dict[str,str]): The command line switches.
"""
user = User.objects.get(login_id="imacat")
user = User(sn=923153018, login_id="imacat",
password="5486b64881adaf7bc1485cc26e57e51e", name="依瑪貓",
is_disabled=False, is_deleted=False)
user.created_by = user
user.updated_by = user
user.save()
Account(sn=new_sn(Account), code="1", title_zh_hant="資產",
title_en="assets", title_zh_hans="资产", created_by=user,