From 820583cab66d077332084b59a9a5644ed4d22185 Mon Sep 17 00:00:00 2001 From: Syed Sajjad Hussain Shah Date: Thu, 28 Nov 2024 16:44:53 +0500 Subject: [PATCH] fix: docs error --- commerce_coordinator/apps/lms/tasks.py | 2 +- docs/conf.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/commerce_coordinator/apps/lms/tasks.py b/commerce_coordinator/apps/lms/tasks.py index 32079b73..f5e3c893 100644 --- a/commerce_coordinator/apps/lms/tasks.py +++ b/commerce_coordinator/apps/lms/tasks.py @@ -99,7 +99,7 @@ def fulfill_order_placed_send_enroll_in_course_task( f'LMS fulfill_order_placed_send_enroll_in_course_task fired with {locals()},' ) - user = User.objects.get(lms_user_id=1) + user = User.objects.get(lms_user_id=edx_lms_user_id) enrollment_data = { 'user': user.username, diff --git a/docs/conf.py b/docs/conf.py index 9400054a..e1f70b19 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -75,7 +75,6 @@ def get_version(*file_paths): # A list of warning types to suppress arbitrary warning messages. suppress_warnings = [ 'image.nonlocal_uri', - 'role:setting', ] # Add any paths that contain templates here, relative to this directory. @@ -557,3 +556,8 @@ def setup(app): """Sphinx extension: run sphinx-apidoc.""" event = 'builder-inited' app.connect(event, on_init) + +rst_prolog = """ +.. role:: setting +.. role:: sig +"""