Skip to content

Commit

Permalink
fix: add missing line in code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Aug 12, 2022
1 parent f9deea9 commit d907e07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/how-to/create-new-event.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ with:
Consider the user data representation as an example:

.. code-block:: python
@attr.s(frozen=True)
class CourseData:
"""
Expand Down Expand Up @@ -116,6 +117,7 @@ The definition created in this step must comply with:
Consider the following example:

.. code-block:: python
# Location openedx_events/learning/signals.py
# .. event_type: org.openedx.learning.course.enrollment.created.v1
# .. event_name: COURSE_ENROLLMENT_CREATED
Expand Down Expand Up @@ -143,6 +145,7 @@ Before opening a PR in the service project, refer to its contribution guidelines
Consider the integration of the event ``STUDENT_REGISTRATION_COMPLETED`` as an example:

.. code-block:: python
# Location openedx/core/djangoapps/user_authn/views/register.py
# .. event_implemented_name: COURSE_ENROLLMENT_CREATED
COURSE_ENROLLMENT_CREATED.send_event(
Expand Down

0 comments on commit d907e07

Please sign in to comment.