File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
class DataSecrecyWaiver (DefaultFieldsModelExisting ):
11
11
__relocation_scope__ = RelocationScope .Organization
12
12
13
- organization = FlexibleForeignKey ("sentry.Organization" , unique = True )
13
+ organization = FlexibleForeignKey ("sentry.Organization" , unique = True , db_constraint = False )
14
14
access_start = models .DateTimeField (default = timezone .now )
15
15
access_end = models .DateTimeField (default = timezone .now )
16
16
zendesk_tickets = ArrayField (models .TextField (), default = list )
Original file line number Diff line number Diff line change 1
1
from datetime import datetime
2
+ from typing import Any
2
3
3
4
from sentry .data_secrecy .service .model import RpcEffectiveGrantStatus
4
5
5
6
6
7
def serialize_effective_grant_status (
7
- grant_status : dict , organization_id : int
8
+ grant_status : dict [ str , Any ] , organization_id : int
8
9
) -> RpcEffectiveGrantStatus :
9
10
"""
10
11
Convert cached grant status to simplified RpcGrantStatus model for access control.
You can’t perform that action at this time.
0 commit comments