Skip to content

Commit

Permalink
OM-188 Fixed wrong arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
malinowskikam committed Aug 23, 2024
1 parent cb69ded commit 110473d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msystems/client/mconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def __init__(self):
MsystemsConfig.mconnect_config['service_certificate'],
MsystemsConfig.mconnect_config['mconnect_certificate'])])

def get_person(self, idpn):
def get_person(self, idnp):
service_handle = self.client.service['GetPerson']
if not service_handle:
raise SoapClientError("Service GetPerson not found")
return service_handle(IDPN=idpn)
return service_handle(IDNP=idnp)
21 changes: 21 additions & 0 deletions msystems/migrations/0007_add_languages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from django.db import migrations

language_code_ro = "ro"
language_code_ru = "ru"

def on_migration(apps, schema_editor):
language_model = apps.get_model("core", "language")
if not language_model.objects.filter(code=language_code_ro).exists():
language_model(code=language_code_ro, name="Română").save()
if not language_model.objects.filter(code=language_code_ru).exists():
language_model(code=language_code_ru, name="Русский").save()

class Migration(migrations.Migration):
dependencies = [
('msystems', '0006_add_bill_query_rights'),
('core', '0001_initial'),
]

operations = [
migrations.RunPython(on_migration, migrations.RunPython.noop),
]

0 comments on commit 110473d

Please sign in to comment.