Skip to content

Conversation

@ballPointPenguin
Copy link
Owner

…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.

…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 37ebecd into main Dec 29, 2025
2 checks passed
@ballPointPenguin ballPointPenguin deleted the claude/fix-professor-voice-regeneration-uPx4g branch December 29, 2025 02:35
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