Skip to content

Commit 258804a

Browse files
fix: remov RegistrationFormData data attr class
1 parent 861c1c5 commit 258804a

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

openedx_events/learning/data.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@ class UserData:
4242
user = attr.ib(type=UserPersonalData)
4343

4444

45-
@attr.s(frozen=True)
46-
class RegistrationFormData:
47-
"""
48-
Attributes defined for Open edX student object.
49-
"""
50-
51-
account_form = attr.ib(type=Dict[str, str], factory=dict)
52-
extension_form = attr.ib(type=Dict[str, str], factory=dict)
53-
54-
5545
@attr.s(frozen=True)
5646
class CourseData:
5747
"""
@@ -70,12 +60,12 @@ class CourseEnrollmentData:
7060
Attributes defined for Open edX Course Enrollment object.
7161
"""
7262

73-
creation_date = attr.ib(type=datetime)
74-
created_by = attr.ib(type=UserData)
7563
user = attr.ib(type=UserData)
7664
course = attr.ib(type=CourseData)
7765
mode = attr.ib(type=str)
7866
is_active = attr.ib(type=bool)
67+
creation_date = attr.ib(type=datetime)
68+
created_by = attr.ib(type=UserData, default=None)
7969

8070

8171
@attr.s(frozen=True)

0 commit comments

Comments
 (0)