Skip to content

Commit

Permalink
ref: organization cannot be None for Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile-sentry committed Jul 3, 2024
1 parent 78d445a commit 0751c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/api/serializers/rest_framework/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def create(self, validated_data):
bad things will happen
"""
self.instance = Dashboard.objects.create(
organization=self.context.get("organization"),
organization=self.context["organization"],
title=validated_data["title"],
created_by_id=self.context["request"].user.id,
)
Expand Down

0 comments on commit 0751c71

Please sign in to comment.