Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent dac6498 commit 0c35aa1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/organization/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
from django.utils.functional import cached_property
from django.utils.translation import gettext_lazy as _
from django_extensions.db.models import TimeStampedModel
from kafka.managers import KafkaManager
from localflavor.us.models import USZipCodeField
from phonenumber_field.modelfields import PhoneNumberField

from kafka.managers import KafkaManager

from .exceptions import ConditionalStructureError
from .services.table_choices import TABLE_NAME_CHOICES
from .validators import validate_format_string, validate_org_timezone
Expand Down Expand Up @@ -1331,7 +1332,6 @@ def clean(self) -> None:
super().clean()

def save(self, *args: Any, **kwargs: Any) -> None:

# clear out the table and topic input depdning on the source.
# if source is Kafka clear out the table input
# if source is Postgres clear out the topic input
Expand All @@ -1341,7 +1341,8 @@ def save(self, *args: Any, **kwargs: Any) -> None:
self.topic = ""

super().save(*args, **kwargs)



class NotificationType(TimeStampedModel):
"""
Stores the notification type information for a related :model:`organization.Organization`
Expand Down
1 change: 1 addition & 0 deletions server/organization/services/psql_triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from django.db import connection, transaction
from django.db.backends.utils import truncate_name

from organization.exceptions import InvalidOperationError
from organization.services.conditional_logic import (
AVAILABLE_OPERATIONS,
Expand Down
1 change: 1 addition & 0 deletions server/organization/tests/test_table_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import pytest
from django.core.exceptions import ValidationError
from django.core.management import call_command

from kafka.managers import KafkaManager
from organization import factories, models
from organization.exceptions import ConditionalStructureError
Expand Down

0 comments on commit 0c35aa1

Please sign in to comment.