Skip to content

Conversation

@Neha-1216
Copy link

Added an Audit Log feature that tracks all CREATE, UPDATE, and DELETE operations on database models using SQLAlchemy event listeners. Logs are stored in a dedicated AuditLog table and displayed in a read-only admin view with filters for action type and model name.

…view

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@@ -0,0 +1,504 @@
/* Flask-Admin Custom Theme - Matching Landing Page Design */
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure I understand why this file

</p>
"""
return tmp
return """<!DOCTYPE html>
Copy link
Contributor

Choose a reason for hiding this comment

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

Such a long html+css should be moved to static

@ElLorans ElLorans changed the title Add audit log system Add audit log system example Feb 7, 2026
@ElLorans
Copy link
Contributor

ElLorans commented Feb 7, 2026

I see you only added an example, so I changed the PR name. I think adding a new example makes more sense than editing the current one. But why aren't you using something like https://github.com/sqlalchemy-continuum/sqlalchemy-continuum? What happens when a model changes?

@samuelhwilliams
Copy link
Contributor

Is there anything about this which is specific to Flask-Admin? This seems like a generic example of SQLAlchemy functionality only.

I'm not sure there is much value in adding this.

Neha-1216 and others added 2 commits February 10, 2026 11:04
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

3 participants