-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add audit log system example #2781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…view Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
| @@ -0,0 +1,504 @@ | |||
| /* Flask-Admin Custom Theme - Matching Landing Page Design */ | |||
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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
|
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? |
|
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. |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.