#11617 closed (duplicate)
Enhance User Message System
Reported by: | Christian Karrié | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | 1.0 |
Severity: | Keywords: | user message enhancement | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
I would like to see a enhanced user message system that allows to specify some base types of the message.
For example:
- message_type = 'Error'
- message_type = 'Success'
- message_type = 'Notice'
That would be very practicable if you do an custom action and want to display as a user message, if it has failed or not.
An example for validating a Model using a Admin Action for further calculations could look like this:
# admin.py (fictional code) def validate(modeladmin, request, queryset): for q in queryset.all(): message = u"%s: %s" %(q.name, q.validate()) if q.is_valid: message_type = 'Success' else: message_type = 'Error' request.user.message_set.create(message=message, message_type=message_type) validate.short_description = "Validate for Agl"
Change History (5)
comment:1 by , 15 years ago
comment:3 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
It's a more direct duplicate of #3995.
Note:
See TracTickets
for help on using tickets.
I'm tempted to close this as a d uplicate of #4606 where the addition of a type to the message is one of the proposed/asked for features of a new messaging system.