Skip to content

Conversation

@ballPointPenguin
Copy link
Owner

No description provided.

…ds method

When regenerating lecture audio with an updated professor voice, the
voice_id field was being silently ignored during the update. This caused
lectures to retain their old voice_id even after audio regeneration.

The update_fields method had an allowed_fields whitelist that did not
include 'voice_id', and the return statement also omitted it. This fix:

- Adds 'voice_id' to the allowed_fields set
- Includes voice_id in the returned Lecture model

Now when audio is regenerated with a professor's updated voice, the
lecture record correctly stores the new voice_id.
@ballPointPenguin ballPointPenguin merged commit 1342b80 into prod Dec 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants