File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class UserNonPersonalData:
21
21
"""
22
22
23
23
id = attr .ib (type = int )
24
- is_active = attr .ib (type = bool , default = True )
24
+ is_active = attr .ib (type = bool )
25
25
26
26
27
27
@attr .s (frozen = True )
@@ -41,19 +41,18 @@ class UserPersonalData:
41
41
42
42
43
43
@attr .s (frozen = True )
44
- class UserData :
44
+ class UserData ( UserNonPersonalData ) :
45
45
"""
46
46
Attributes defined for Open edX user object.
47
47
48
+ This class extends UserNonPersonalData to include PII data completing the
49
+ user object.
50
+
48
51
Arguments:
49
- user_non_pii (UserNonPersonalData): user's Personal Identifiable
50
- Information.
51
- user_pii (UserPersonalData): user's Non Personal Identifiable
52
- Information.
52
+ pii (UserPersonalData): user's Non Personal Identifiable Information.
53
53
"""
54
54
55
- user_non_pii = attr .ib (type = UserNonPersonalData )
56
- user_pii = attr .ib (type = UserPersonalData )
55
+ pii = attr .ib (type = UserPersonalData )
57
56
58
57
59
58
@attr .s (frozen = True )
You can’t perform that action at this time.
0 commit comments