9
9
class ComponentSession (models .Model ):
10
10
"""A model for storing component sessions."""
11
11
12
- uuid = models .UUIDField (primary_key = True , editable = False , unique = True ) # type: ignore
13
- params = models .BinaryField (editable = False ) # type: ignore
14
- last_accessed = models .DateTimeField (auto_now = True ) # type: ignore
12
+ uuid = models .UUIDField (primary_key = True , editable = False , unique = True )
13
+ params = models .BinaryField (editable = False )
14
+ last_accessed = models .DateTimeField (auto_now = True )
15
15
16
16
17
17
class Config (models .Model ):
18
18
"""A singleton model for storing ReactPy configuration."""
19
19
20
- cleaned_at = models .DateTimeField (auto_now_add = True ) # type: ignore
20
+ cleaned_at = models .DateTimeField (auto_now_add = True )
21
21
22
22
def save (self , * args , ** kwargs ):
23
23
"""Singleton save method."""
@@ -36,8 +36,8 @@ class UserDataModel(models.Model):
36
36
# We can't store User as a ForeignKey/OneToOneField because it may not be in the same database
37
37
# and Django does not allow cross-database relations. Also, since we can't know the type of the UserModel PK,
38
38
# we store it as a string to normalize.
39
- user_pk = models .CharField (max_length = 255 , unique = True ) # type: ignore
40
- data = models .BinaryField (null = True , blank = True ) # type: ignore
39
+ user_pk = models .CharField (max_length = 255 , unique = True )
40
+ data = models .BinaryField (null = True , blank = True )
41
41
42
42
43
43
@receiver (pre_delete , sender = get_user_model (), dispatch_uid = "reactpy_delete_user_data" )
0 commit comments