Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy strings fixed #2668

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions care/contrib/sites/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.utils.translation import gettext_lazy as _
import django.contrib.sites.models
from django.contrib.sites.models import _simple_domain_name_validator
from django.db import migrations, models
Expand All @@ -13,7 +14,7 @@ class Migration(migrations.Migration):
(
"id",
models.AutoField(
verbose_name="ID",
verbose_name=_("ID"),
serialize=False,
auto_created=True,
primary_key=True,
Expand All @@ -23,11 +24,11 @@ class Migration(migrations.Migration):
"domain",
models.CharField(
max_length=100,
verbose_name="domain name",
verbose_name=_("domain name"),
validators=[_simple_domain_name_validator],
),
),
("name", models.CharField(max_length=50, verbose_name="display name")),
("name", models.CharField(max_length=50, verbose_name=_("display name"))),
],
options={
"ordering": ("domain",),
Expand Down
3 changes: 2 additions & 1 deletion care/contrib/sites/migrations/0002_alter_domain_unique.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.utils.translation import gettext_lazy as _
import django.contrib.sites.models
from django.db import migrations, models

Expand All @@ -13,7 +14,7 @@ class Migration(migrations.Migration):
max_length=100,
unique=True,
validators=[django.contrib.sites.models._simple_domain_name_validator],
verbose_name="domain name",
verbose_name=_("domain name"),
),
)
]
5 changes: 3 additions & 2 deletions care/facility/api/serializers/patient_consultation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django.db import transaction
from django.utils import timezone
from django.utils.timezone import localtime, make_aware, now
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
from rest_framework.exceptions import ValidationError

Expand Down Expand Up @@ -159,14 +160,14 @@ class PatientConsultationSerializer(serializers.ModelSerializer):
many=True,
write_only=True,
required=False,
help_text="Bulk create diagnoses for the consultation upon creation",
help_text=_("Bulk create diagnoses for the consultation upon creation"),
)
diagnoses = ConsultationDiagnosisSerializer(many=True, read_only=True)
create_symptoms = EncounterCreateSymptomSerializer(
many=True,
write_only=True,
required=False,
help_text="Bulk create symptoms for the consultation upon creation",
help_text=_("Bulk create symptoms for the consultation upon creation"),
)
symptoms = EncounterSymptomSerializer(many=True, read_only=True)
medico_legal_case = serializers.BooleanField(default=False, required=False)
Expand Down
Loading