Skip to content

Add chapter15 files - #37

Open
Mitchina wants to merge 4 commits into
mainfrom
chapter15
Open

Add chapter15 files#37
Mitchina wants to merge 4 commits into
mainfrom
chapter15

Conversation

@Mitchina

@Mitchina Mitchina commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread Chapter15/educa/students/views.py Outdated
Comment thread Chapter15/api_examples/enroll_all.py Outdated
available_courses += [course["title"] for course in courses]
print(f"Available courses: {', '.join(available_courses)}")

for course in courses:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this operate on available_courses instead?

@Mitchina Mitchina Sep 13, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this case, because available_courses was only a list of course titles. But I've slightly improved it now (in 591d018), so available_courses holds the course objects from all the pages, and course_titles just holds the titles that we print.
I'll make sure to update the code and the explanation of it in the book as well.

Comment thread Chapter15/educa/students/views.py Outdated
Mitchina and others added 3 commits September 13, 2026 19:29
Co-authored-by: Mark Walker <theshow@gmail.com>
Co-authored-by: Mark Walker <theshow@gmail.com>
@Mitchina
Mitchina requested a review from marksweb September 13, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants