Skip to content
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

Make success messages more dynamic and compliant with standard django #220

Merged
merged 2 commits into from Jun 4, 2023

Conversation

christianwgd
Copy link
Contributor

Change the success message so that it can be used with either a static message (class property) or a dynamic success message from get_success_message method (so we're able to use model instance attributes in the message) or even without a message.

This doesn't seem to be of high priority, maybe we can just merge it and publish with a future release.

Change the success message so that it can be used with either a static message (class property) or a dynamic success message from get_success_message method (so we're able to use model instance attributes in the message) or even without a message.
@slavikos
Copy link

This affect us as well, since we have numerous views that do not declare a success_message attribute (we set our success message dynamically) and recent versions of the module broke our code due to the FormValidationMixin accessing without a check the success_message attribute.

@trco trco merged commit a4dad4e into trco:master Jun 4, 2023
@trco trco added the merged label Jun 4, 2023
@trco
Copy link
Owner

trco commented Jun 4, 2023

Tnx @christianwgd for your new valuable contribution. 🚀

aDramaQueen pushed a commit to aDramaQueen/django-bootstrap-modal-forms that referenced this pull request Nov 30, 2023
…trco#220)

Change the success message so that it can be used with either a static message (class property) or a dynamic success message from get_success_message method (so we're able to use model instance attributes in the message) or even without a message.

Co-authored-by: Uroš Trstenjak <33464584+trco@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants