From 1c275672e79ea23442921f76d15e749edc04e713 Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Fri, 27 Sep 2024 18:39:26 +0200 Subject: [PATCH] chore: typings --- src/firefighter/api/serializers.py | 4 ++-- .../incidents/templates/layouts/partials/created_at_help.html | 2 +- .../templates/partials/trigger_oncall_form_view_modal.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/firefighter/api/serializers.py b/src/firefighter/api/serializers.py index 7ff2f66e..37f7f118 100644 --- a/src/firefighter/api/serializers.py +++ b/src/firefighter/api/serializers.py @@ -219,12 +219,12 @@ class IncidentSerializer(TaggitSerializer, serializers.ModelSerializer[Incident] created_by = UserSerializer(read_only=True) slack_channel_name = serializers.SerializerMethodField() - created_by_email = CreatableSlugRelatedField[User]( # type: ignore[misc] + created_by_email = CreatableSlugRelatedField[User]( source="created_by", write_only=True, slug_field="email", queryset=User.objects.all(), - validators=[EmailValidator()], + validators=[EmailValidator()], # type: ignore[list-item] ) tags = TagListSerializerField(read_only=True) diff --git a/src/firefighter/incidents/templates/layouts/partials/created_at_help.html b/src/firefighter/incidents/templates/layouts/partials/created_at_help.html index 23f067fb..03dbc603 100644 --- a/src/firefighter/incidents/templates/layouts/partials/created_at_help.html +++ b/src/firefighter/incidents/templates/layouts/partials/created_at_help.html @@ -1,5 +1,5 @@ -{% component "modal" autoplay="true" %} +{% component "modal" autoplay=False %} {% fill "modal_header" %} Time Range syntax {% endfill %} diff --git a/src/firefighter/pagerduty/templates/partials/trigger_oncall_form_view_modal.html b/src/firefighter/pagerduty/templates/partials/trigger_oncall_form_view_modal.html index f1cd25ca..09f5258d 100644 --- a/src/firefighter/pagerduty/templates/partials/trigger_oncall_form_view_modal.html +++ b/src/firefighter/pagerduty/templates/partials/trigger_oncall_form_view_modal.html @@ -1,4 +1,4 @@ -{% component "modal" autoplay=True header=False%} +{% component "modal" autoplay=True header=False %} {% fill "modal_header" %} Trigger on-call