Skip to content

Commit

Permalink
remove serializer in places it doesn't belong
Browse files Browse the repository at this point in the history
  • Loading branch information
aspicer committed Jun 14, 2024
1 parent 5ae720a commit 6bc98d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions posthog/api/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from posthog import settings
from posthog.api.routing import TeamAndOrgViewSetMixin
from posthog.api.shared import TeamBasicSerializer
from posthog.api.utils import ClassicBehaviorBooleanFieldSerializer
from posthog.cloud_utils import is_cloud
from posthog.constants import INTERNAL_BOT_EMAIL_SUFFIX, AvailableFeature
from posthog.event_usage import report_organization_deleted
Expand Down Expand Up @@ -70,8 +69,6 @@ class OrganizationSerializer(serializers.ModelSerializer, UserPermissionsSeriali
teams = serializers.SerializerMethodField()
metadata = serializers.SerializerMethodField()
member_count = serializers.SerializerMethodField()
is_hipaa = ClassicBehaviorBooleanFieldSerializer()
never_drop_data = ClassicBehaviorBooleanFieldSerializer()

class Meta:
model = Organization
Expand Down
1 change: 0 additions & 1 deletion posthog/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class UserSerializer(serializers.ModelSerializer):
notification_settings = serializers.DictField(required=False)
scene_personalisation = ScenePersonalisationBasicSerializer(many=True, read_only=True)
anonymize_data = ClassicBehaviorBooleanFieldSerializer()
email_opt_in = ClassicBehaviorBooleanFieldSerializer()

class Meta:
model = User
Expand Down

0 comments on commit 6bc98d0

Please sign in to comment.