Skip to content

Conversation

@lsabor
Copy link
Contributor

@lsabor lsabor commented Nov 26, 2025

This PR implements automatic triggering of update_pseudo_materialized_fields when saving Post or Question objects in the Django admin.

Changes

  • Added save_model override to PostAdmin that calls update_pseudo_materialized_fields() after saving
  • Added save_model override to QuestionAdmin that gets the associated Post and calls update_pseudo_materialized_fields()

This ensures that pseudo materialized fields (scheduled/actual close/resolve times, etc.) are properly updated whenever these objects are saved via the admin interface.

Fixes #3832


Generated with Claude Code

…admin save

When saving a Post or Question in the Django admin, this now triggers
the update_pseudo_materialized_fields method to ensure all pseudo
materialized fields (scheduled/actual close/resolve times, etc.) are
properly updated.

Fixes #3832

Co-authored-by: Luke Sabor <[email protected]>
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.

Post and Question admin save should trigger update_pseudo_materialized_fields

3 participants